# NotebookSizer? / Resizing a listbook

**URL:** <https://www.ruby-forum.com/t/notebooksizer-resizing-a-listbook/137471>\
**Category:** wxRuby\
**Created:** [May 13, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/notebooksizer-resizing-a-listbook/137471 "2008-05-13T14:12:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![secretz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e95f7d/32.png) [@secretz](https://www.ruby-forum.com/u/secretz)\
**Post date:** [May 13, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/notebooksizer-resizing-a-listbook/137471/1 "2008-05-13T14:12:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![secretz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e95f7d/32.png) [@secretz](https://www.ruby-forum.com/u/secretz)\
**Post date:** [May 13, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/notebooksizer-resizing-a-listbook/137471/2 "2008-05-13T17:22:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![secretz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e95f7d/32.png) [@secretz](https://www.ruby-forum.com/u/secretz)\
**Post date:** [May 13, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/notebooksizer-resizing-a-listbook/137471/3 "2008-05-13T17:32:20Z")

</div>

Jonathan M. 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.
