User forums > General (but related to Code::Blocks)

How to overlap controls and indicate different z-orders ?

(1/1)

eranon:
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) ?

oBFusCATed:
Place them in vertical sizer, set the borders to 0 and show/hide the controls as needed.

eranon:
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.

Navigation

[0] Message Index

Go to full version