From: ruby talk Date: 2006-01-13T01:00:18+09:00 Subject: Re: Ruby Tk --> Window Buttons ------=_Part_16959_12678638.1137081604709 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I think this is the code example u are looking for require "tk" p Tk.root.protocol "WM_DELETE_WINDOW", proc {puts "foo"} p Tk.root.protocol "WM_TAKE_FOCUS", proc {puts "bar"} p Tk.root.protocol "WM_DELETE_WINDOW" p Tk.root.protocol p Tk.root.protocol "WM_DELETE_WINDOW", "" p Tk.root.protocol "WM_DELETE_WINDOW" p Tk.root.protocol Tk.mainloop On 1/12/06, alexmaster wrote: > > Hi @ all! > > I don't want the user to maximize the TkRoot - window with the button on > the right side of the window! How can I disable this one? Or how can I > make the size of my window fixed? > > Thanks in advance! ALEX > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_16959_12678638.1137081604709--