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

Home » Public Forums » archive » Widget Event Conundrum
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
Widget Event Conundrum [message #9725] Wed, 06 August 1997 00:00
Kenny Hunt is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: map projection and map on XY plane in 3D
Next Topic: cube(*,*,i)

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

Current Time: Wed Oct 08 19:12:05 PDT 2025

Total time taken to generate the page: 0.00605 seconds