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

Home » Public Forums » archive » Re: ? Weird DRAW widget VALUE ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: ? Weird DRAW widget VALUE ? [message #14131] Fri, 29 January 1999 00:00 Go to previous message
rmlongfield is currently offline  rmlongfield
Messages: 68
Registered: August 1998
Member
In article <78q454$rvr$1@news.rz.uni-karlsruhe.de>,
Peter Cornelius <pcNOSPAM@inr.fzk.de> wrote:
> Re...see earlier post for details

Hi Peter, Seeing your code helps a lot. You don't need to send draw288_id
through the COMMON block. You must send draw288 (the widget ID for
WIDGET_DRAW). Then you can get draw288_id back using
WIDGET_CONTROL,draw288,GET_VALUE=draw288_id And then you can write
WSET,draw288_id

It might be useful to label your variables carefully. I try to put the
letters 'ID' only at the end of widget ID's (drawID = WIDGET_DRAW(...).
Also, when you "Get_Value" a value in your event handler, the variable name
can be anything. It helps if its name is related to what you expect to be
inside, i.e. buttonvalue or windowvalue (although if there is an error, this
can help add to the confusion, as in your case with the string). The word
"value" is used a lot in the documentation and refers sometimes to different
things. For me, the uvalue was the most difficult to understand (It can be
anything you want, but they never offer any suggestions to a beginner). I
use it now as a miniature package with information that the event handler
needs to know.

I used WIDED a lot when I started working with widgets. It is not a bad
program for getting used to how widgets work.

Rose

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI - IDL display question
Next Topic: disappearing feature?

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

Current Time: Wed Oct 08 15:08:05 PDT 2025

Total time taken to generate the page: 0.00440 seconds