Draw Widget Type Field [message #42524] |
Sun, 13 February 2005 21:31 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
A perusal of the documentation for WIDGET_DRAW shows seven
possible values for the TYPE field, ranging from a value
of 0 for a button press, to a value of 6 for a key press
(value in KEY field).
I typically use the type field to index a string
array where I have set up strings like DOWN, UP, MOTION,
etc. I find this a little easier to follow in my code.
But I have some reports of some of my code breaking
recently. Apparently my string array is being indexed
with a value of 16! (The user tried to use the scroll
wheel on a two-button mouse in LINUX.)
Does anyone have any good ideas of what possible values
I might expect from the TYPE field? Could this possibly
be an undocumented feature? I have had similar problems
when user pushed two buttons at the same time. (I don't know,
I didn't ask.) Do you suppose this is a platform specific
feature?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|