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

Home » Public Forums » archive » Getting the widget id.
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 the widget id. [message #28391 is a reply to message #27960] Wed, 05 December 2001 20:19 Go to previous message
Thomas Launey is currently offline  Thomas Launey
Messages: 25
Registered: September 1999
Junior Member
In article <Pine.SUN.4.30.0111121640510.18654-
100000@proxima.irus.rri.on.ca>, arankin@irus.rri.on.ca says...
> Yes I know this sounds simple, and it probably is, but for the sake of
> young guns like me why don't we humor me. I want to know what command I
> can run to get the widget ID of the supplied widget.
>
> Something along the lines of:
>
> slider = WIDGET_SLIDER(etc...)
>
> WIDGET_INFO, slider, GET_ID
> or something of the like?
>
> Talk to me!
>
> -Adam

Hi Adam,
You mean slider ID is not saved in the Uval of the top-level base (or in
self for the object minded guys). AFAIK, Widget_info as a Find_by_Uname
keyword precisely for this purpose.

so:
;****** Event handler *****
SliderID=widget_info(event.top,find_by_Uname="my slider")
If (slider NE 0) then print, "slider ID is : " + strtrim(sliderID,2)

;******Main******
..
void=Widget_Slider(base,....,Uname="my slider")
..

I hope this helps,
Thomas
--
Thomas Launey
Lab. for Memory and Learning
Brain Science Institute, RIKEN
Saitama, Japan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Plotting data spanning multiple UTM zones
Next Topic: Re: IDL data to Excel sheets?

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

Current Time: Sun Oct 12 19:44:14 PDT 2025

Total time taken to generate the page: 0.01374 seconds