>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  CW_BITLIGHTS






      Indicate bits on or off.


Calling Sequence

      id = cw_bitlights( parent)


      parent = Widget ID of parent base. in

Keyword Parameters


        VALUE=val Initial value. This may be a scalar or an
          array of 0s and 1s (give array with smallest bit first).
        LABEL=label Labels for each bit.
          A null string gives a blank space.
          The number of labels sets the number of lights.
          May have fewer lights than needed to display the full
          value given, only the needed bits will be used.
        /REVERSE means displayed order of bits.
        /STRIP make a horizontal strip of lights.
          For this case if all labels are single spaces then
          no extra room will be allowed for them. As before use
          inserted null strings to give a blank between lights.
        /SHOW means display value. Only works with /STRIP.
        FORMAT=fmt Format to use for /SHOW (def='(I0)').
        HUE=hue Single hue or array for each bit.
        SAT=sat Single saturation or array for each bit.
          Default color is green. If arrays are used for hue and
          sat then they must have entries for each light.
        UVALUE=uval User value (def=none).
        /FRAME frame around widget (def=one).
        TITLE=ttl Image title (def=none).
        /NOGLARE means do not display glare around lights.
        /PACK pack lights closer together (use with /noglare).


Common Blocks


      Note: Lights are ordered from the top down, unless
        /REVERSE is used.
        Change status by setting a new value:
          widget_control, id, set_val=bits
        bits may be a single value or an array of 0s and 1s.
        If an array is used give smallest bit first.

Modification History

      R. Sterner, 2002 Nov 12
      R. Sterner, 2003 Mar 05 --- Add dark halo for noglare.
      R. Sterner, 2003 Mar 26 --- Added /STRIP for horizontal lights.
      R. Sterner, 2010 May 04 --- Converted arrays from () to [].
  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.

© 2020 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us