comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: howto bind shortcut key to button
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: howto bind shortcut key to button [message #34082] Wed, 19 February 2003 06:24 Go to previous message
David Fanning is currently offline  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
[Message index]
 
Read Message
Read Message
Previous Topic: Re: counting bits
Next Topic: Is there a way to use C++ code in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 11:04:14 PDT 2025

Total time taken to generate the page: 1.44239 seconds