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

Home » Public Forums » archive » Draw Widget Type Field
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Draw Widget Type Field [message #42524] Sun, 13 February 2005 21:31
David Fanning is currently offline  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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Rubberband box for object graphics
Next Topic: test

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

Current Time: Fri Oct 10 17:44:51 PDT 2025

Total time taken to generate the page: 0.22559 seconds