wxWidgets - Sizers

BlitzMax Modules Forums/Brucey's Modules/wxWidgets - Sizers

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm playing around with Sizers and so far I figured out how that stuff works, but now I reached a point where I'm stuck.

I'm trying to set up a dynamic dialog box with an array of up to 3x3 images in the area of tGridS.

'*** +---------+-+---------------------+
'*** |         |S|                     |
'*** | Buttons |P| tGridS              |
'*** |         |C|                     |
'*** +---------+-+---------------------+
'*** |         |S|                     |
'*** | Spacer  |P| StaticBoxSizer      |
'*** |         |C| (ComboBoxes)        |
'*** +---------+-+---------------------+
'***		
'*** tGridS holds up to 3x3 images
'***	


The dialog box should only start with one visible image in the topleft position of tGridS (wxGridSizer.CreateRC(3,3,0,0)). The other possible positions are set to tGridS.Show(tCanvas[x,y], False).

The respective controls are not visible in the dialog but despite the Show(False) command and the call of Layout() in several places I did not manage to reduce the dialog box to the minimum size needed with only one image visible (I started with only wxGridSizer.CreateRC(1,1,0,0) to make things easier).

Is there anywhere out there a working example for a dynamic dialog?

Maybe I'm using the wrong Sizer for the result I would like to achive.

I would appreciate any hints that would help me to get where I want to.

-- Peter