Use this procedure to return the centering offsets for a widget.
Syntax
ENVI_CENTER, Xoff, Yoff [, /XBIG] [, /YBIG]
Arguments
Xoff
This is a named variable that contains the x (horizontal) offset for use in the call to the IDL routine WIDGET_BASE.
Yoff
This is a named variable that contains the y (vertical) offset for use in the call to the IDL routine WIDGET_BASE.
Keywords
XBIG
Set this keyword if the widget will be large in the horizontal direction.
YBIG
Set this keyword if the widget will be large in the vertical direction.
Example
The following code gets the centering information from ENVI_CENTER and uses it in the call to WIDGET_BASE.
envi_center, xoff, yoff
base = widget_base(title='Center test', $
xoff=xoff, yoff=yoff, /column)
API Version
4.3