Method XbpWindow():setSize() Foundation
Changes the size of the Xbase Part.
Syntax
:setSize( <aSize> [,<lPaint>] ) --> lSuccess
Parameters
<aSize> := { nXsize, nYsize }
<aSize> is an array containing the new dimensions of the window in the x and y directions.
<lPaint>
The parameter <lPaint> defaults to .T. (true) which causes an xbeP_Paint event being posted to the event queue when the method :setSize() returns. This way, an Xbase Part is painted automatically when its size changes. The automatic screen update is suppressed by passing .F. (false) for <lPaint>. In this case, a screen update is explicitely achieved by calling the method :invalidateRect().
Return
The method returns the value .T. (true) if the size of the window is changed, otherwise .F. (false) is returned.
Description
The method :setSize() changes the size of the Xbase Part. The current size is determined using the method :currentSize().
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.