CW_MCLED Name
CW_MCLED Purpose
Multicolored LED widget. Category
Calling Sequence
id = cw_mcled( parent) Inputs
parent = Widget ID of parent base. in
Keyword Parameters
Keywords
VALUE=val Initial value. Must be from 0 to N-1
where N is the number of allowed states.
LABEL=label Array of N labels, one for each state.
A null string gives a blank label. First element
is for the off state, other elements are for on states.
DONE_LABEL=dlab Optional label for an extra state,
normally done (LED off). Set value--2 for this state.
MSG_ID=msg_id WID of LED label is any (-1=none).
Can be used to display text in an unused label area.
HUE=hue Array of hues, one for each state.
SAT=sat Array of saturations, one for each state (def=1s).
UVALUE=uval User value (def=none).
/FRAME frame around widget (def=one).
TITLE=ttl LED title (def=none).
/NOGLARE means do not display glare around LED.
/PACK Make a smaller LED (use with /noglare).
Change status by setting a new value:
widget_control, id, set_val=state
Set state to 0 for off. Set to any value from 0
to 1 less than number of states (labels and hues).
Setting to -1 erases LED and label.
Outputs
Common Blocks
Notes
Modification History
R. Sterner, 2003 Mar 18
R. Sterner, 2003 Mar 24 --- Squeezed out some excess space.
R. Sterner, 2006 Feb 19 --- Added return in help.
R. Sterner, 2006 Feb 19 --- Fixed floating under flow (>1e-10).
R. Sterner, 2006 Feb 19 --- OS dependent values. Dark halo darker.
R. Sterner, 2006 Feb 28 --- Changed background brightness.
R. Sterner, 2007 Jul 27 --- Added DONE_LABEL.
R. Sterner, 2007 Jul 30 --- Fixed to not change current window.
R. Sterner, 2007 Aug 27 --- Added MSG_ID.
R. Sterner, 2010 May 04 --- Converted arrays from () to [].
Copyright (C) 2003, 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.