Hi Tanay. Seeing as you did this in Boa Constructor, one way to do this
would be to open the Frame Designer and start using Boa's support for sizers.
I would first save your current project to a different name to not
lose this layout
scheme, then, using a different filename, begin modifying it in Boa.
It is a little tedious,
but this layout shouldn't require more than about 4 sizers. You can associate
sizers to already-existing widgets by doing something like this:
1. First place the sizer by selecting it in the Palette and dropping
it onto your panel1.
(You can later put sizers insider sizers...I always start
everything with one boxsizer).
2. Go to the sizers tab in the Editor window, which will now exist.
3. Doubleclick on the sizer in the tab, which will launch its collection editor.
4. Make a placeholder for your first widget to go into this sizer by
clicking the
leftmost tool in the toolbar (it will say None; a red box appears
in the Designer).
5. Click on None and notice in the Inspector the row labeled Window
shows "None".
6. Click on that dropdown--by None--and it will show the names of all
the widgets in
your app. Choose the one that you want to be in that position in
the sizer.
7. Repeat 4-6 for each widget in a particular sizer.
8. Do this (1-7) for each sizer in your frame.
HTH,
Che
···
2009/3/20 Tanay Shah <tanay.shah@gmail.com>:
Hi,
I've almost designed my frame with the required controls. Now i want to add
sizers.
How can i do it without starting the entire thing again ??
Thanks in advance
Please find attached - code for my frame.
--
Regards
Tanay Shah