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? -- Posted via http://www.ruby-forum.com/.
Pat Kiatchaipipat 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?? -- Posted via http://www.ruby-forum.com/.
Pat Kiatchaipipat 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