>  Docs Center  >  Libraries  >  Motley  >  MGH_GUI_TESTBED__DEFINE
Libraries

MGH_GUI_TESTBED__DEFINE

MGH_GUI_TESTBED__DEFINE

Class


  MGH_GUI_Testbed

Category


      Widgets.

Purpose


  A testbed for widget components. Handy for examining events generated by
  widget components and an example of how to extend MGH_GUI_Base.
  OBJECT CREATION SEQUENCE:
  Create an 'MGH_GUI_Testbed' object with a single button.
    obed = obj_new('MGH_GUI_Testbed')
    obed->Test
  Create an 'MGH_GUI_Testbed' object with a single button.
  Create an 'MGH_GUI_Testbed' object and add a child widget by
  calling function 'func'
    obed = obj_new('MGH_GUI_Testbed')
    obed->Test, func
  Create an 'MGH_GUI_Testbed' object and add a child widget by
  creating class 'class' (assumed to be a subclass of MGH_GUI_Base).
  Call the testbed object's Update method to ensure all children
  are updated.
    obed = obj_new('MGH_GUI_Testbed')
    obed->Test, class, /OBJECT
    obed->Update
  The testbed's Init method accepts the same keywords as MGH_GUI_Base.
  The testbed's Test method accepts additional arguments (up to 3) and
  keywords that are passed to the child widget.
###########################################################################
  This software is provided subject to the following conditions:
  1. NIWA makes no representations or warranties regarding the
    accuracy of the software, the use to which the software may
    be put or the results to be obtained from the use of the
    software. Accordingly NIWA accepts no liability for any loss
    or damage (whether direct of indirect) incurred by any person
    through the use of or reliance on the software.
  2. NIWA is to be acknowledged as the original author of the
    software where the software is used or presented in any form.
###########################################################################

Modification History


  Mark Hadfield, 2001-06:
    Written.
  Mark Hadfield, 2001-10:
    * Increased maximum number of arguments to 3 to accommodate
    CW_ANIMATE.
    * Updated for IDL 5.5.
  Mark Hadfield, 2002-07:
    Creation of test widget now done in the Test method, not in the
    testbed's Init method. I have made this change for the usual
    reason: when test widget creation was done in the Init method
    I got into a tangle in interpreting keywords and arguments



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us