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

Home » Public Forums » archive » Re: Getting uname
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: Getting uname [message #28644 is a reply to message #28634] Thu, 27 December 2001 11:18 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Lisa Gandy (redlmg98@hotmail.com) writes:
>
> I have a gui in IDL and I understand how to set uvalues of widgets and
> then get the uvalue when an event is triggered. However I am not
> familiar with how to get the uname when an event is triggered. For
> example usually i would use this command to get the uvalue....
>
> widget_control,event.id,get_uvalue = uval
>
> What is the command to get a uname?

If you are using UNAMES, you have to know what name
you are looking for. For example, suppose you had
assigned a slider the uname "RED_SLIDER". Then you would
find the ID of the slider in an event handler like this:

sliderID = Widget_Info(event.top, Find_By_UName='RED_SLIDER')

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Re: image display by IDL
Next Topic: Write_Image

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

Current Time: Sat Oct 11 02:36:17 PDT 2025

Total time taken to generate the page: 0.96022 seconds