Sizer problem

Greetings,

Currenly i am trying to display a grid at the bottom of my GUI when a
button is clicked. However, the original frame size will not be auto
adjusted. it makes the GUI looks ugly and not user friendly as they need
to use cursor to resize it. May i know is there any command that i can
use to solve this problem? any method to adjust the frame after
evt_button generate a grid at the bottom? thanks a lot.

You are looking for the fit() method.

From the docs:
window.Fit(): The Fit() method sets the size of a window to fit around
its children. If it has no children then nothing is done, if it does
have children then the size of the window is set to the window’s best
size.

http://docs.wxwidgets.org/stable/wx_windowsizingoverview.html#windowsizingoverview

and
http://wxruby.rubyforge.org/doc/window.html#Window_fit

ps. frames that resize themselves aren’t really considered user-friendly
either.

Best of luck,
Jonathan

(I’m really really starting to hate Thunderbird, 4th time I sent this
message now)