How to set minimum size for a window in wxRuby

I am making a simple GUI using wxRuby. I just read the tutorials and FAQs on the official gem site, but there are just a few examples.

I want to know if there is a way (I'm sure there is a way, but I don't know how to implement it) to set the minimum size of windows ...

For example, I want to set the minimum size of the windows so that the user doesn't shrink the window to a level where buttons and elements are not visible ...

Many thanks.

+2


source to share


2 answers


Try Wx :: Sizer.set_min_size () . Since this is an abstract class, you need to use one of the sizers that inherits from it.



+2


source


Check it:

http://wxruby.rubyforge.org/doc/window.html



and this:

http://wxruby.rubyforge.org/doc/sizer.html

+1


source







All Articles