CW_DROPLIST2 Name
CW_DROPLIST2 Purpose
A pop up list from which to select an item.
Category
Calling Sequence
wid = cw_droplist2( parent) Inputs
parent = Widget ID of parent widget. in
Keyword Parameters
Keywords
VALUE=list Given text array with list of items.
NUM=num Number to display before breaking list (def=15).
UVALUE=uval User value that may be set.
/UPDATE means update button with selected item.
Otherwise button not updated except using
cw_droplist2_select, id, indx Outputs
wid = Widget ID of opo up list. out
Common Blocks
Notes
Note: You can set a new droplist using
widget_control, id, set_value=list
and get the current list using
widget_control, id, get_value=list
but to set the value displayed on the button you must do
cw_droplist2_select, id, indx
where indx is the index in the list to display.
Use /UPDATE to avoid this extra call.
Modification History
R. Sterner, 2001 Dec 07
R. Sterner, 2010 May 04 --- Converted arrays from () to [].
Copyright (C) 2001, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.