2

I'm doing a simple GUI using wxRuby. I have just only read the tutorials and FAQ on the official site of the gem, but there are just a few examples.

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

For example, i want to set the minimum size of the windows to prevent the user from reducing the window to the level that the buttons and items aren't visible...

Thanks a lot.

flyer88
  • 1,073
  • 3
  • 15
  • 33

2 Answers2

2

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

Yuval F
  • 20,565
  • 5
  • 44
  • 69
  • Thanks a lot! set_min_size works on the app... it works on my frame object... i will check now on sizers... – flyer88 Sep 23 '09 at 20:45
1

Check this:

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

and this:

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

khelll
  • 23,590
  • 15
  • 91
  • 109