>  Docs Center  >  Libraries  >  Coyote  >  XCOLORS


  The purpose of this program is to interactively change color tables
  in a manner similar to XLoadCT. No common blocks are used so
  multiple copies of XColors can be on the display at the same
  time (if each has a different `Title`). XColors has the ability
  to notify a widget event handler, an object method, or an IDL
  procedure if and when a new color table has been loaded. Brewer
  color tables can also be accessed from this program, if the file
  fsc_brewer.tbl can be found somewhere in your IDL path.
  Events are sent to widgets if the `NotifyID` keyword is used. Object
  methods are called if the `NotifyObj` keyword is used. This program
  is a non-blocking widget unless the `Block` keyword is set.




    To load a color table into 100 colors, starting at color index
    50 and send an event to the widget identified at info.drawID
    in the widget heirarchy of the top-level base event.top, type::
        XCOLORS, NCOLORS=100, BOTTOM=50, NOTIFYID=[info.drawID, event.top]


          David W. Fanning
          1645 Sheely Drive
          Fort Collins, CO 80526 USA
          Phone: 970-221-0438
          E-mail: david@idlcoyote.com
          Coyote's Guide to IDL Programming: http://www.idlcoyote.com


    Change History::
      Written by David W. Fanning, 15 April 97.
      Added OBJECT_DATA keyword so that I can get additional information
          about the state of the color table tool into object methods. 21 October 2008. DWF.
      Add REVERSE keyword and Reverse Color Table button. 12 April 2009. DWF.
      In looking for a Brewer color table file, I replaced all FILE_WHICH
          commands with FIND_RESOURCE_FILE commands. 28 April 2009. DWF.
      Made sure all "NOTIFY" data structures have both a "REVERSED" and
          "BREWER" field in them to indicate the status of the XCOLORS program. Also
          inproved the documentation and made it more accurate. 20 Sept 2009. DWF.
      Still a few problems getting the Brewer color tables completely integrated.
          Fixed several bugs with updating color table names and type. 14 Oct 2009. DWF.
      Modified the program to work correctly with a user-supplied color table file. 29 Sept 2010. DWF.
      Fixed a problem I noticed when starting the program with reversed color tables. The
            initial colors were incorrect on subsequent calls. Also made a modification so that
            color index -1 as input is handled properly (ignored). 26 November 2010. DWF.
      Added WINDOW and WINID keywords. 26 January 2011. DWF.
      Changed several Get_Decomposed calls to the more generic SetDecomposedState. 15 Jan 2012. DWF.


    Copyright (c) 1997-2012, Fanning Software Consulting, Inc.

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