Thanks Matt ... and I'm glad you are enjoying this 'cause I'm firing two
more questions of the same caliber:

1) Now I got the window I want, how do I keep it always on top?, and
2) To what do I bind to detect when the parent window is being moved, so I
can move
this window right along with it.

Thanks again, Matt
Alan Walkington

"Matt Gushee" <mgushee / havenrock.com> wrote in message
news:20021105091239.GB585 / swordfish...
> 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.)
>