wxMax - Stopping a child resizing on a frame

BlitzMax Modules Forums/Brucey's Modules/wxMax - Stopping a child resizing on a frame

Is it possible to give panels borders with captions the way you can in MaxGUI?

I missed this one, Sorry :-p

You want to use a wxStaticBox.
From the docs:
A static box is a rectangle drawn around other panel items to denote a logical grouping of items.

Please note that a static box should <b>not</b> be used as the parent for the controls it contains,
instead they should be siblings of each other. Although using a static box as a parent might work
in some versions of wxWidgets, it results in a crash under, for example, wxGTK.

Also, please note that because of this, the order in which you create new controls is important.
Create your wxStaticBox control <b>before</b> any siblings that are to appear inside the wxStaticBox
in order to preserve the correct Z-Order of controls.


Or you may prefer to venture into using wxSizers, for which there is a wxStaticBoxSizer, which essentially looks after the parent/child issue for you. eg, you can chuck a wxPanel inside it and attach buttons and whatnot to the panel. The sizer will worry about the panel sizing/layout etc.


wxDialog is a bit like a wxFrame, except it's not so much a main-window as your standard dialog type - those that popup during the running of your app for things like prefs, etc.
You'll notice that a wxDialog already has a panel and things built in, whereas a wxFrame is completely empty and ready to do with whatever you need.