Dynamically change sizer border?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
In need of some credit
In need of some credit
Posts: 1
Joined: Mon Oct 06, 2014 5:47 am

Dynamically change sizer border?

Post by ron.dunn » Fri Oct 10, 2014 5:35 am

Is there a way to dynamically change the border around a sizer?

I can use SetHGap() and SetVGap() to adjust the spacing between cells, but I can't find a way to adjust the space around the entire sizer.

I've also looked for a panel border function that might achieve a similar effect, but I can't find anything there, either.


User avatar
Posts: 14954
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Dynamically change sizer border?

Post by doublemax » Fri Oct 10, 2014 11:16 am

For items that are inside a sizer, you can use wxSizerItem::SetBorder()
http://docs.wxwidgets.org/trunk/classwx ... 65ffe639db

But you can't set an inner border for the root sizer.
Use the source, Luke!

Post Reply