Re: howto bind shortcut key to button [message #34082] |
Wed, 19 February 2003 06:24  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Sebastian (s@visita2.die.upm.es) writes:
> is there a way to bind a shortcut key to a button?
> I would like to do something like pressing CTRL+S while my app is in
> hte foreground evokes myapp->save.
> I didn't find anything useful on this in the manual and the ng archive,
> and the idl demo doesn't seem to use keyboard short-cuts.
Under Microsoft Windows, including the ampersand character (&) in the
value of a button widget causes the window manager to place an underline
under the character following the ampersand. This is a feature of
Microsoft Windows, and is generally used to indicate which character is
used as a keyboard accelerator for the button. If you plan to run the
application on *anything* other than Windows, though, forget it.
The ampersand will show up on the button and there will be
no accelerating effect. This is a WINDOWS ONLY feature. :-(
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|