CW_DSLIDER Name
CW_DSLIDER Purpose
Slider using draw widget. Generates drag events.
Category
Calling Sequence
id = cw_dslider(parent) Inputs
parent = Widget ID of parent. in
Keyword Parameters
Keywords
SIZE=sz Slider size in pixels (def=100).
MINIMUM=min Slider min value (def=0).
MAXIMUM=max Slider max value (def=100).
/HORIZONTAL make a horizontal slider (def).
/VERTICAL make a vertical slider.
VALUE=val Initial slider value (def=(min+max)/2).
UVALUE=uval Set user value.
/FRAME include a frame.
COLOR=clr 24-bit color of slider.
Outputs
id = Widget ID of draw slider. out
Common Blocks
Notes
Note: Can return floating values. Set MIN, MAX, and VALUE
floats.
Make sure to use a numeric value for SET_VAL=val in
widget_control. To change the slider color use
widget_control, wid, set_val='color=clr'
where clr is a 24-bit color value.
Modification History
R. Sterner, 2002 Oct 06
R. Sterner, 2002 Dec 17 --- Was clobbering window 0. Fixed.
R. Sterner, 2003 Dec 04 --- Added note of returning floating values.
R. Sterner, 2006 Oct 23 --- Allowed SET_VAL=val to make color change.
Copyright (C) 2002, 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.