Hi Morten,
I agree there's still a lot that could be done to make this
more intuitive. I'll consider adding a help window advising
what can be added to the selected item, and/or add appropriate
items to the item's context menu.
At 20:11 20/06/2006, you wrote:
>I'm still new to wxWidgets so forgive me if I ask something stupid.
>I read a lot about the sizer philosophy and I think it's great.
>However, I'm still struggeling in my GUI design. How do I decide when
>to place a sizer and when e.g. another panel. For example: THere is a
>wxNotebook sizer. Is this for inside the notebook's pages or do I
>place the notebook inside this sizer?
In fact wxNotebookSizer is deprecated since wxWidgets 2.5.2 or so,
and all you need to do is add panels (or other windows) under the
wxNotebook. However, the panels (pages) you add to the wxNotebook
could well have their own sizers under them, in order to layout
each page's controls. Wizards are similarly self-laying-out,
but here there is an explicit wxWizardPage to add to the wizard,
instead of an arbitrary window.
> And when do I put the panels
>inside the notebook? What about the splitwindow? After adding this, to
>I need to place two panels first, or two sizers and then the panels?
>These are the kind of questions I'm not confident with. I'm not
>talking about basic GUI design here - this works quite well (so far...).
wxSplitterWindow lays out its 2 windows itself, so just add 2 windows
under the splitter. Again, those 2 windows might have sizers under
them.
>My question is: Am I worried too much or does DialogBlock simply
>doesn't allow placing something inside something that does not fit
>and/or would require an additional (specific type of) sizer?
DB tries to veto inappropriate item placement though some things
slip through. However you can get a few hints from the Elements
sample, if you're stuck.
Thanks for your patience! As I say, more could be done to reduce
the ambiguity, and I'll give it some thought.
Regards,
Julian