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

Home » Public Forums » archive » Convert_Coords for map gives many 'error messages'?
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
Convert_Coords for map gives many 'error messages'? [message #31880] Tue, 27 August 2002 04:18
Robbert Verweij is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Loading picture into compound widget
Next Topic: Re: Convert_Coords for map gives many 'error messages'?

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

Current Time: Sat Oct 11 03:23:37 PDT 2025

Total time taken to generate the page: 0.64087 seconds