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

Home » Public Forums » archive » Re: Retrieve content of Droplist
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: Retrieve content of Droplist [message #15290 is a reply to message #15288] Mon, 03 May 1999 00:00 Go to previous message
Henry Chapman is currently offline  Henry Chapman
Messages: 10
Registered: February 1997
Junior Member
"Thomas C. Stubbings" wrote:
>
> Although it may be trivial, I cannot manage to retrieve the currently
> selected value of a droplist (the online help of IDL is somehow a bad
> joke...). It is defined as follows:
>
> WID_DROPLIST_RULEWT = Widget_Droplist(WID_BASE_0, $
> UNAME='WID_DROPLIST_RULEWT' ,XOFFSET=4 ,YOFFSET=45 $
> ,SCR_XSIZE=135 ,SCR_YSIZE=23 ,TITLE='Fusion rule' ,VALUE=[ $
> 'average', 'waverage', 'maximum', 'minimum', 'himaximum', $
> 'hifirst', 'hisecond', 'hi/lo', 'lo/hi' ])
>
> Can anyone help? Thanks!
>
> Thomas


In your event procedure:

wid_droplist = widget_info(event.top,
find_by_uname='WID_DROPLIST_RULEWT')
selected = widget_info(wid_droplist, /droplist_select)


From the widget_info help:

DROPLIST_SELECT
This keyword applies to widgets created with the WIDGET_DROPLIST
function.

Set this keyword to return the zero-based number of the
currently-selected
element (i.e., the currently-displayed element) in the specified
droplist
widget.


Henry.


--
Henry Chapman mailto:chapman9@llnl.gov
Information Science & Technology Program phone:(925)423-1580
Lawrence Livermore National Lab fax:(925)423-1488
L-395, 7000 East Ave., Livermore CA 94550
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: FAQ Query Update
Next Topic: Re: IDL falls to sleep!

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

Current Time: Fri Oct 10 15:24:21 PDT 2025

Total time taken to generate the page: 2.07305 seconds