Classes

Method XbpStatic():new() Foundation

Creates an instance of the XbpStatic class.

Syntax
XbpStatic():new( [<oParent>], ;
                 [<oOwner>], ;
                 [<aPos>], ;
                 [<aSize>], ;
                 [<aPresParam>], ;
                 [<lVisible>] ) --> oXbpStatic
Parameters
<oParent>
The parent for the XbpStatic object can be optionally specified using the parameter <oParent>. By default <oParent> is the active window (the return value of SetAppWindow()). If the default is used, the active window must be an XbpCrt window. If the active window is an XbpDialog window, the drawing area of the window must be specified for <oParent>. The drawing area is referenced using the instance variable oXbpDialog:drawingArea.
<oOwner>
<oOwner> optionally specifies the owner for the XbpStatic object. By default, <oOwner> is the same as <oParent>.
<aPos> := { nX, nY }
The optional parameter <aPos> can be used to specify the position where the XbpStatic object is displayed. By default, this parameter contains the array {0,0}. This specifies the position for the lower left corner of the XbpStatic object. The first element contains the x coordinate and the second element contains the y coordinate. The coordinates are relative to the coordinate system of <oParent>.
<aSize> := { nXsize, nYsize }
The parameter <aSize> optionally specifies the size of the XbpStatic object. <aSize> must be an array containing two elements. The first element specifies the x dimension (width) and the second element specifies the y dimension (height). By default this value is the array {0,0}.
<aPresParam>
A two dimensional array can be specified for <aPresParam>. Refer to Generic presentation parametersfor a detailed explanation.
The presentation parameter for the font (XBP_PP_COMPOUNDNAME) is only effective when the XbpStatic object displays a caption. This is the case when the :type instance variable is set to XBPSTATIC_TYPE_TEXT or XBPSTATIC_TYPE_GROUPBOX.
<lVisible>
The parameter <lVisible> determines whether the XbpStatic object is visible immediately after the call to the method :create(). By default <lVisible> is .T. (true) and the XbpStatic object is displayed after :create() is executed. This default behavior can be suppressed by specifying the value .F. (false) for the parameter <lVisible>. In this case, the object must be explicitly displayed using the :show() method.
Return

The class method :new() returns an XbpStatic object.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.