Method XbpActiveXControl():setPos() Foundation

Repositions the ActiveX control.

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 ActiveX control.
<lPaint>
The optional logical parameter <lPaint> specifies whether the control should redraw itself when its position is changed. This parameter is ignored for ActiveX controls and is supported for compatibility only. It is the task of the implementor of an ActiveX control to decide when the control redraws itself after a position change.
Return

The method returns the value .T. (true) if the position of the ActiveX control was changed, otherwise .F. (false) is returned.

Description

The method :setPos() changes the position of an ActiveX control. 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.