Widget Event Conundrum [message #9725] |
Wed, 06 August 1997 00:00 |
Kenny Hunt
Messages: 2 Registered: March 1997
|
Junior Member |
|
|
I am developing an image-based application.
There is a main windnow with certain controls created with:
MainWin = WIDGET_BASE(TITLE="Main")
...
WIDGET_CONTROL, MainWin, /REALIZE
XMANAGER,"Main",MainWin
There is a window for viewing the current image. I've
created and managed it as follows:
ViewWin = WIDGET_BASE(GROUP_LEADER=MainWin)
DrawWin = WIDGET_DRAW(ViewWin,/MOTION_EVENTS,....)
...
WIDGET_CONTROL, ViewWin, /REALIZE
XMANAGER, "View", ViewWin, /NO_BLOCK
All this works fine, but here's the problem. I have a number
of dialog windows that I create in modal mode using the
MainWin as GROUP_LEADER. I would like to be able to click
on the DrawWin image and get the cursor position, but all
events are turned off when the modal dialog is active.
The IDL documentation states that the CURSOR procedure should
not be used on DRAW widgets, otherwise this would be a good
option. Are there any suggestions?
Dialog = WIDGET_BASE(GROUP_LEADER=MainWin,/MODAL)
...
XMANAGER,"DIALOG",Dialog,/NO_BLOCK
Thanks,
Kenny Hunt
hunt@iowasp.physics.uiowa.edu
|
|
|