Convert_Coords for map gives many 'error messages'? [message #31880] |
Tue, 27 August 2002 04:18 |
Robbert Verweij
Messages: 2 Registered: August 2002
|
Junior Member |
|
|
Hi,
we're implementing a piece of IDL code where multiple windows are used to
visualise different parts of the data at the same time.
The windows are individual draw_widgets. The active window is determined by
the cursor position. This cursor position is being tracked and printed if
the motion_events for that draw_widget are enabled (really much like one of
the example IDL programs...). Two problems remain...
1) If I move the cursor to a MAP, convert_coords returns only NANs, until I
redraw the map. It's not !P or so, I've stored and restored those (I
think...). What can be the problem?
2) Convert_coords returns the string 'Program caused arithmetic error:
Floating illegal operand', if I move the cursor into the title field or so.
Of course I could just not call Convert_coords for event.x < 10 and event.x
> eg 400, but I don't know how many lines (hence pixels) the titlefield will
be... Is it possible to call Convert_coords in 'Silent mode', ie to let it
NOT return error messages?
The source code is quite much, hence I did not strip down the code to shown
the exact 'how-I-did-it', if needed, I can post parts of the relevant code.
Thanks in advance for all help,
Dr. Robbert Verweij
Science and Technology, inc.
|
|
|