For Programmers: Free Programming Magazines  


Home > Archive > Tcl > October 2004 > Adding to the system menu on 'Windows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Adding to the system menu on 'Windows
Christopher Nelson

2004-10-27, 8:57 pm

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
Michael Kirkham

2004-10-27, 8:57 pm

In 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/
Christopher Nelson

2004-10-28, 3:57 am

Michael 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. ;-)
USCode

2004-10-28, 4:00 pm

Nifty. 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. ;-)



Donal K. Fellows

2004-10-28, 4:00 pm

USCode wrote:
> Nifty. Is adding a new menu item to the system menu documented anywhere in
> 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.
Victor Wagner

2004-10-28, 4:00 pm

USCode <uscode@dontspam.me> wrote:
> Nifty. Is adding a new menu item to the system menu documented anywhere in
> 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com