From: Matt Gushee Date: 2002-11-05T18:13:01+09:00 Subject: Re: yet another newbie question! Here I am again. You know, I like these questions: this is giving me an excuse to refresh my Tk knowledge! On Tue, Nov 05, 2002 at 04:41:45PM +0900, Alan (Ursus Major) wrote: > Maybe it's too late at night for this. No such thing! > How do I create a top-level window /without/ decorations?. Am even I saying > it right? Without the title, iconify, close, and all that other crap. I'd > like it for a modal dialog box sort of thing. myTopLevelWindow.overrideredirect(true) For the relevant Tk man page: 'man wm' In Tcl, you would write this as (more or less): wm overrideredirect .myTopLevelWindow 1 In Ruby the 'wm' part goes away, because the method is attached to all relevant widgets. Note also that, like the other 'wm' methods, overrideredirect relies on the window manager being ICCCM-compliant and such--so if the window manager is buggy, the methods may not work as intended. Not much you can really do about that. -- Matt Gushee When a nation follows the Way, Englewood, Colorado, USA Horses bear manure through mgushee@havenrock.com its fields; http://www.havenrock.com/ When a nation ignores the Way, Horses bear soldiers through its streets. --Lao Tzu (Peter Merel, trans.)