>  Docs Center  >  Libraries  >  Motley  >  MGH_WIDGET_ABS_OFFSET
Libraries

MGH_WIDGET_ABS_OFFSET

MGH_WIDGET_ABS_OFFSET

Name


  MGH_WIDGET_ABS_OFFSET

Purpose


  Given a widget ID, this function returns the offset of this widget
  relative to the screen

Calling Sequence


  Result = MGH_WIDGET_ABS_OFFSET(wid)

Positional Parameters


  wid (input, widget ID)
    The ID of the widget we are searching.

Keyword Parameters


  UNITS (input, integer scalar)
    This keyword specifies the units required fo the result. Valid values
    are 0 (pixels, default), 1 (inches), 2 (centimetres).

Return Value


  The function returns a 2-element vector representing the offset
  of the current widget relative to the screen.
###########################################################################
  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, 2004-07:
    Written.



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