RE: Widget version of BOX_CURSOR [message #3217] |
Fri, 02 December 1994 20:57 |
dean
Messages: 55 Registered: March 1993
|
Member |
|
|
> mallozzi@ssl.msfc.nasa.gov:
> I just tried BOX_CURSOR on a draw widget and it seems to work OK (IDL 3.6
> on a DEC Alpha). You have to do a
> c = CONVERT_COORD(x, y, /DEVICE, /TO_DATA)
> if you want the x, y, returned by BOX_CURSOR to be in data coord.
> I also use CURSOR in a widget-driven program and it seems to work fine,
> even though the IDL manual says one shouldn't use CURSOR for draw widgets.
> I would try BOX_CURSOR before working on CW_BOX_CURSOR...
CURSOR and BOX_CURSOR work fine with small displays that are around screen
size or less. I am using it now. However, grap a 3800 x 1500 or larger image
- like from explorer.arc.nasa.gov/pub/Weather/GOES-7 - and see what happens.
You will be unable to scroll around the image, it will not refresh. If you
use event.x event.y from WIDGET_DRAW instead of CURSOR, x, y - scrolling
within WIDGET_DRAW works.
Kelly Dean
CSU/CIRA
|
|
|
RE: Widget version of BOX_CURSOR [message #3227 is a reply to message #3217] |
Fri, 02 December 1994 09:43  |
mallozzi
Messages: 60 Registered: August 1994
|
Member |
|
|
|Kelly Dean:
| I was wondering if anyone has a Widget version of BOX_CURSOR. BOX_CURSOR
| uses CURSOR, which wipes out the image in WIDGET_DRAW. Before I start
| working on a CW_BOXCUR, I just thought I check to see if anyone has done it
| already.
I just tried BOX_CURSOR on a draw widget and it seems to work OK (IDL 3.6
on a DEC Alpha). You have to do a
c = CONVERT_COORD(x, y, /DEVICE, /TO_DATA)
if you want the x, y, returned by BOX_CURSOR to be in data coord.
I also use CURSOR in a widget-driven program and it seems to work fine,
even though the IDL manual says one shouldn't use CURSOR for draw widgets.
I would try BOX_CURSOR before working on CW_BOX_CURSOR...
mallozzi@ssl.msfc.nasa.gov
|
|
|
|