Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Adding to the system menu on 'Windows
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

Report this thread to moderator Post Follow-up to this message
Old Post
Christopher Nelson
10-28-04 01:57 AM


Re: Adding to the system menu on 'Windows
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/

Report this thread to moderator Post Follow-up to this message
Old Post
Michael Kirkham
10-28-04 01:57 AM


Re: Adding to the system menu on 'Windows
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. ;-)

Report this thread to moderator Post Follow-up to this message
Old Post
Christopher Nelson
10-28-04 08:57 AM


Re: Adding to the system menu on 'Windows
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. ;-)



Report this thread to moderator Post Follow-up to this message
Old Post
USCode
10-28-04 09:00 PM


Re: Adding to the system menu on 'Windows
USCode 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.

Report this thread to moderator Post Follow-up to this message
Old Post
Donal K. Fellows
10-28-04 09:00 PM


Re: Adding to the system menu on 'Windows
USCode <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

Report this thread to moderator Post Follow-up to this message
Old Post
Victor Wagner
10-28-04 09:00 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:44 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.