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

Home » Public Forums » archive » thanks for mouse info
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
thanks for mouse info [message #3305] Mon, 19 December 1994 02:01
chrish is currently offline  chrish
Messages: 2
Registered: December 1994
Junior Member
Hi,

thanks for all the suggestions to solve my problem with mouse
and widgets. What finally solved the problem was the following:

* use wtaddhandler to handle events in my 'drawarea':

status=wtaddhandler(drawarea,ButtonPressMask,'mousecoord')

with ButtonPressMark the call back procedure 'mousecoord'
is called when a button on the mouse is pressed.

* in the callback procedure mousecoord I use the routine wtpointer
with GetLocation:

status=wtpointer('GetLocation',draw,mouseinfo)

mouseinfo is an array containing information on the mouse,
mouseinfo(4) and mouseinfo(5) contain the x and y coordinates
in device coordinates.


Harmen
(venvd@nlr.nl)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How can I print large PS polygons from PV-WAVE?
Next Topic: IDL for Linux(PC-UNIX)

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

Current Time: Wed Oct 08 17:46:42 PDT 2025

Total time taken to generate the page: 0.00832 seconds