Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to hide menu keeping shortcut Alt F of Alt H working

Status
Not open for further replies.

etognoni

Technical User
Nov 23, 2013
1
Hi im absolute beginner for tcl/tk.
Question: is possible to hide menu bar (File Play Edit Help) with shortcut Alt F or Alt P working Alt E Alt H working like if menu is not hide?

thanks you very much
 
Are you talking about an IDE or a menu that you made yourself?

_________________
Bob Rashkin
 
Hi,

Not sure if it helps in your quest and/or if there are more simpler/logical solutions, but one might simply add toplevel bindings to the same key combinations of the menu entries, as soon as the user hides the menu. For example:

Lets suppose you have created a menu into the main toplevel "." and user/program activates hiding the menu. Then we could define the following binding:

Code:
bind . <Alt-Key-h> {call_help_procedure}

Where call_help_procedure is obviously the (same) help procedure that is executed as using the menu's Help-entry.

thacoda
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top