
Can't add to system menu on NT
Quote:
> > I'm trying to add an item to the system menu of an NT-based Tcl
> > application and nothing is happening. What am I doing wrong?
> > % menu .mb
> > .mb
> > % . configure -menu .mb
> > % .mb add command -label "file"
> > % menu .mb.system
> > .mb.system
> > % .mb.system add command -label "foo"
> This confused me for a while, too. You also need to do:
> .mb add cascade -label System -menu .mb.system
Thanks, that does the trick. Strange.
Quote:
> Also, tearoffs look awful in the system menu. You probably
> want to do:
> .mb.system configure -tearoff 0
Yep, I should.
Quote:
> (Y'know, living so close together, one of these times we ought to
> meet in person...)
Yeah, we should. And don't you have a book coming out? A lot of
authors here in Tech Valley, I guess.
Chris
--
Christopher Nelson, Sr. Software Engineer Pinebush Technologies,
Inc.
Author: Tcl/Tk Programmer's Reference
http://www.purl.org/net/TclTkProgRef