Ruby Forum wxRuby > how can I set window not resize?

Posted by Pat Kiatchaipipat (blitzer)
on 19.04.2008 06:51
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 by Alex Fenton (Guest)
on 19.04.2008 11:10
(Received via mailing list)
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
Posted by Pat Kiatchaipipat (blitzer)
on 19.04.2008 12:48
yeah it work! but in the middle of top-botton it can use show in 
maximize. it can't change??
Posted by Alex Fenton (Guest)
on 19.04.2008 13:14
(Received via mailing list)
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
Posted by Pat Kiatchaipipat (blitzer)
on 19.04.2008 15:25
thx you :)