>  Docs Center  >  Libraries  >  CATALYST  >  DATAVIEWER_GRIDSIZE

DATAVIEWER_GRIDSIZE

DATAVIEWER_GRIDSIZE

Name


  DATAVIEWER_GRIDSIZE

Purpose



  This function allows the user to change the grid dimensions in DAAC DataViewer.

Author



      David W. Fanning, Ph.D
      National Snow and Ice Data Center (NSIDC)
      NSIDC/CIRES University of Colorado
      Boulder, CO 80309
      E-Mail: fanning@nsidc.org

Category



  Utility, Widgets

Calling Sequence



  theGrid = DataViewer_GridSize()

Inputs



  None.

Keyword Parameters



  CANCEL: An output parameter. If the user kills the widget or clicks the Cancel
      button this keyword is set to 1. It is set to 0 otherwise. It
      allows you to determine if the user canceled the dialog without
      having to check the validity of the answer.
      theText = GridSize(Title='Provide Phone Number...', Label='Number:', Cancel=cancelled)
      IF cancelled THEN Return
  GRID: A two-element array [xsize, ysize] with the initial parameters for the widget.
  GROUP_LEADER: The widget ID of the group leader of this pop-up
      dialog. This should be provided if you are calling
      the program from within a widget program:
          thetext = GridSize(Group_Leader=event.top)
      If a group leader is not provided, an unmapped top-level base widget
      will be created as a group leader.

Outputs



  theGrid: A two-element array of the grid size [xsize, ysize].

Modification History



  Written by: David W. Fanning, June 26, 2008.



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