Code Comments
Programming Forum and web based access to our favorite programming groups.Why doesn't this work: % menu .mb .mb % . configure -menu .mb % menu .mb.system .mb.system % .mb.system add command -label "A new item" ? I expect to see "A new item" in the menu when I click on the icon in the upper left corner of . but I don't see it. I haven't done this in a long time. Have I remembered the technique wrong? Is this not still true in Tk 8.4 on W98? Chris
Post Follow-up to this messageIn article <418040EA.54B592A9@nycap.rr.com>, cnelson@nycap.rr.com says... > Why doesn't this work: > > % menu .mb > .mb > % . configure -menu .mb > % menu .mb.system > .mb.system > % .mb.system add command -label "A new item" You've created the menu .mb.system but haven't attached it anywhere. You're missing: .mb add cascade -menu .mb.system -- Michael Kirkham Muonics http://www.muonics.com/
Post Follow-up to this messageMichael Kirkham wrote: > > In article <418040EA.54B592A9@nycap.rr.com>, cnelson@nycap.rr.com says... > > > You've created the menu .mb.system but haven't attached it anywhere. > You're missing: > > .mb add cascade -menu .mb.system Yeah, thanks. I found that an onosecond after posting. ;-)
Post Follow-up to this messageNifty. Is adding a new menu item to the system menu documented anywhere in the ActiveTcl documentation? I can't seem to find it. Is this capability cross-platform? "Christopher Nelson" <cnelson@nycap.rr.com> wrote in message news:418046B9.5858B5C6@nycap.rr.com... > Michael Kirkham wrote: > > Yeah, thanks. I found that an onosecond after posting. ;-)
Post Follow-up to this messageUSCode wrote: > Nifty. Is adding a new menu item to the system menu documented anywhere i n > the ActiveTcl documentation? I can't seem to find it. Section "SPECIAL MENUS IN MENUBARS" on the 'menu' manual page. > Is this capability cross-platform? No. Every platform has different niftinesses instead. Donal.
Post Follow-up to this messageUSCode <uscode@dontspam.me> wrote: > Nifty. Is adding a new menu item to the system menu documented anywhere i n > the ActiveTcl documentation? I can't seem to find it. Section "SPECIAL MENUS IN MENU BAR" in the menu command description. > Is this capability cross-platform? No. Because system menu is windows-specific thing. On the Mac there is Apple menu which has simular function. -- A newspaper is a circulating library with high blood pressure. -- Arthure "Bugs" Baer
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.