|
List Info
Thread: layout/sizer problem
|
|
| layout/sizer problem |

|
2006-03-10 13:33:00 |
|
aiscape schrieb:
>Hi!
>Me again, sorry.
>I want to layout a dialog in the way drafted below:
>
>|-------------------------------------------
>| wxButton wxButton wxText(single;auto exp)|
>|------------------------------------------|
>| wxButton | |
>| wxButton | |
>| wxButton | |
>| wxButton | wxText |
>| wxButton | (multi line) |
>| wxButton | |
>| wxButton | auto expand |
>| wxButton | height & width |
>| wxButton | |
>--------------------------------------------
>
>Within DB I tried it like this:
>
>Dialog
>->wxBoxSizer V
>-->wxBoxSizer H
>--->wxButton
>--->wxButton
>--->wxText(single) hor. expand
>-->wxFlexGridSizer(c2r1)
>--->wxBoxSizer V
>---->wxButton
>---->wxButton
>---->wxButton
>---->wxButton
>--->wxText(multi) hor.& ver. expand
>
>But I have the problem, that the wxTextCtrls don't expand themselves
>automatically.
>How to do that? Do I have to layout this stuff by myself or do I use
>the sizers in a wrong way?
>
>Thanks a lot,
>Yves.
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
For the controls that shall stretch. you have to set a non-null
stretch-factor (in the editor-window, quite at the bottom).
If you have several widgets that shall stretch, you can determine which
should get most of the room.
Regards,
Andreas
|
| layout/sizer problem |

|
2006-03-11 22:24:52 |
|
--- In anthemion-devtools@yahoogroups.com, Andreas Goebel
<a-goebel ...> wrote:
> For the controls that shall stretch. you have to set a non-null
> stretch-factor (in the editor-window, quite at the bottom).
>
> If you have several widgets that shall stretch, you can determine which
> should get most of the room.
Hi!
Yes, setting the stretch factor works fine but now I have to figure
out how it's working inside a hierachy of widgets (especially
notebookCtrls) and sizers. For me the stretch concept is not clear at
the moment but I will read the docs and the book before asking a next
layout question.
Thanks a lot (Julian too),
Yves.
|
[1-2]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|