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/.
Jonathan Maasland
2008-May-13 15:20 UTC
[wxruby-users] NotebookSizer? / Resizing a listbook
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. >-------------- next part -------------- A non-text attachment was scrubbed... Name: listbook.rb Type: application/x-ruby Size: 2802 bytes Desc: not available URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20080513/175a93cd/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: simple_notebook.rb Type: application/x-ruby Size: 1440 bytes Desc: not available URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20080513/175a93cd/attachment-0001.bin>
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/.