Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Menubars the slick, sophisticated, New-Fashioned way

by converter (Priest)
on Nov 20, 2002 at 00:21 UTC ( #214311=note: print w/ replies, xml ) Need Help??


in reply to Menubars the slick, sophisticated, New-Fashioned way

Your accelerators should work fine when the menus are posted. If you want the key combinations to work as shortcuts without the menus posted you'll want to bind them to the Toplevel:

$mw->bind('<Control-l>', \&load_file); # Ctrl-L to load a file


Comment on Re: Menubars the slick, sophisticated, New-Fashioned way
Download Code
Re: Re: Menubars the slick, sophisticated, New-Fashioned way
by Anonymous Monk on Nov 20, 2002 at 07:59 UTC
    Thanks, binding accelerators worked. I wish the authors put this information in their book. It would save me a lot of time.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://214311]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-07-14 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls