I wrote two small examples. Take a look. I'm in a bit of a
hurry so I
couldn't get the simple_notebook.rb example to work 100%
properly but I
think the example shows a solution to your problem
Something alot of people might actually have trouble with is
the
arguments to <some_sizer>.add( ). It's really not that
difficult a
concept to grasp but difficult to explain. I'm currently
writing a
wxRuby tutorial and I'm kind of blocked on the subject.
Basically most
of the layout stuff that you want to do is pretty easy using
BoxSizer only.
When nesting sizers it is easy to forget when adding sizers
to one
another to specify the needed proportions and GROW flags.
Hope this helps.
Jonathan
Sec Retz wrote:
> There seems to be a NotebookSizer in C++ wxWidgets, is
it in wxRuby or
> is it going to be? Not a lot of info to be found about
that one.
>
> I've been trying to apply sizers to a Listbook but
nothing goes at it
> should be. Nothing is visible until I resize the top
frame a little and
> in best case I can get either horizontal grow but not
simultaneous
> vertical grow.
>
> Would anyone mind showing me how am I supposed to use
sizers so that the
> listbook resizes and the panels in a listbook too?
>
> Thanks.
>
_______________________________________________
wxruby-users mailing list
wxruby-users rubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
|