Method XbpWindow():setPos() Foundation

Repositions the Xbase Part.

Syntax
:setPos( <aPos> [,<lPaint>] ) --> lSuccess
Parameters
<aPos> := { nX, nY }
<aPos> is an array containing the new x and y coordinates of the lower left corner for the window.
<lPaint>
The parameter <lPaint> defaults to .T. (true) which causes an xbeP_Paint event being posted to the event queue when the method :setPos()returns. This way, an Xbase Part is painted automatically when its position 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 position of the window is changed, otherwise .F. (false) is returned.

Description

The method :setPos() changes the position of a Xbase Part. Coordinates are specified for the lower left corner. The current position can be determined using the method :currentPos().

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.