How can I set window not resize?

I try

super(nil, :title => title, :size => [700, 525])
@window = Window.new(self, -1)
@window.set_background_colour(WHITE)
@window.set_size(700,525)
@window.resizable(false)

resizable is not fuction declare. can I make it in other way?

Pat K. wrote:

I try

super(nil, :title => title, :size => [700, 525])
@window = Window.new(self, -1)
@window.set_background_colour(WHITE)
@window.set_size(700,525)
@window.resizable(false)

resizable is not fuction declare. can I make it in other way?

try

super(nil, :title => title, :size => [700, 525],
:style => Wx::DEFAULT_FRAME_STYLE ^ Wx::RESIZE_BORDER)

alex

yeah it work! but in the middle of top-botton it can use show in
maximize. it can’t change??

thx you :slight_smile:

Pat K. wrote:

yeah it work! but in the middle of top-botton it can use show in
maximize. it can’t change??

http://wxruby.rubyforge.org/doc/frame.html - please use

:style => Wx::DEFAULT_FRAME_STYLE ^ Wx::RESIZE_BORDER ^ Wx::MAXIMIZE_BOX

alex

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs