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

Home » Public Forums » archive » PV-WAVE WwDrawing and Clicking
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
PV-WAVE WwDrawing and Clicking [message #3278] Wed, 28 December 1994 11:28
miller is currently offline  miller
Messages: 12
Registered: July 1994
Junior Member
I am trying to get an application to work which will allow the user at
any time to click in a WwDrawing widget and have an action executed. I
have tried using WtAddEventHandler and WtAddCallback, but neither one
works. Here is a sample of what I have done :

main = WwInit ( "test", "test", tlayout )
top = tlayout
draw1 = WwDrawing ( tlayout, 0, "Draw1cb", [ 200, 200 ], [ 200, 200 ] )

status = WwAddEventHandler ( draw1, ButtonPressMask, "ButtonPressCb"
)

Pro ButtonPressCB,...

print, "A button has been pressed"
end

As you can see, this is a very simple example. It does not work.
Could someone please give some advice on what to do.



--
Gordon Miller Miller@uap.nrl.navy.mil |
SFA, Inc "Lobt Gott!" --+--
Naval Research Lab, Wash DC |
|
I smile because I have no idea what's going on.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL Mapping & Map Database
Next Topic: Re: PV-WAVE WwDrawing and Clicking

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

Current Time: Sat Oct 11 05:36:13 PDT 2025

Total time taken to generate the page: 0.56101 seconds