Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: eranon on May 11, 2012, 02:06:24 am
-
I've to manage a wxTextCtrl + a wxHtmlWindow + a wxStaticText, both at same place, but appearing in different circumstances. So, my first though was to simply place these three controls (or items/components in the wxSmith vocabulary, if I've well understood) in the wxFrame with different z-orders... But, how to manage this in CodeBlocks using wxSmith ? Is it possible, knowing sizers seems to avoid any controls overlapping ? Does wxFormBuilder better in this field (never used it, I'm using C::B + wxWidgets recently) ?
-
Place them in vertical sizer, set the borders to 0 and show/hide the controls as needed.
-
OK, understood the concept (sizer will take care of position according to visibility). Thanks oBFusCATed !
-
EDIT : another way (better if it's not to just manage two or three items but several overlapped layouts) is to go through wxNotebook w/o tabs as explained here : http://stackoverflow.com/questions/8398535/wxsmith-a-good-way-to-manage-wxpanel.