PV-WAVE WwDrawing and Clicking [message #3278] |
Wed, 28 December 1994 11:28 |
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.
|
|
|