howto bind shortcut key to button [message #34084] |
Wed, 19 February 2003 04:40  |
s[1]
Messages: 21 Registered: December 2002
|
Junior Member |
|
|
Hey all,
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.
Any ideas?
Thanks a lot,
Sebastian
|
|
|
Re: howto bind shortcut key to button [message #34195 is a reply to message #34084] |
Thu, 20 February 2003 11:59  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning (david@dfanning.com) writes:
> Unfortunately, TRACKING_EVENTS is not completely platform
> independent, either. This concept is foreign to the Windows
> operating system, so RSI has hacked a substitute. As a result,
> some tracking events are missed, depending (I suppose) on
> where the cursor is when the tracking event "fires". You
> have pretty good luck if you move your cursor s-l-o-w-l-y.
It has come to my attention that this little problem
has been fixed in IDL 5.6. I have to admit I haven't
tried it lately, and I haven't had a chance to test
this since I learned about it, but it is from an
impeccable source. :-)
So I think JD's little hack might work well on all
platforms.
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
|
|
|
Re: howto bind shortcut key to button [message #34209 is a reply to message #34084] |
Thu, 20 February 2003 08:40  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
JD Smith (jdsmith@as.arizona.edu) writes:
> The workaround I use: set
> TRACKING_EVENTS on the top-level widget base, and explicitly give the
> appropriate widget focus when entering the application.
Unfortunately, TRACKING_EVENTS is not completely platform
independent, either. This concept is foreign to the Windows
operating system, so RSI has hacked a substitute. As a result,
some tracking events are missed, depending (I suppose) on
where the cursor is when the tracking event "fires". You
have pretty good luck if you move your cursor s-l-o-w-l-y.
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
|
|
|