List Info

Thread: NotebookSizer? / Resizing a listbook




NotebookSizer? / Resizing a listbook
country flaguser name
Germany
2008-05-13 07:12:41
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.
-- 
Posted via http://www.ruby-forum.com
/.
_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

Re: NotebookSizer? / Resizing a listbook
country flaguser name
Netherlands
2008-05-13 10:20:28
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-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users
  
  
Re: NotebookSizer? / Resizing a listbook
country flaguser name
Germany
2008-05-13 10:32:20
Jonathan Maasland wrote:
> 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 

Wow, thanks.  Really
helpful example for me.
-- 
Posted via http://www.ruby-forum.com
/.
_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )