Method XbpActiveXControl():setPos() Foundation

Repositions the ActiveX control.

:setPos( <aPos> [,<lPaint>] ) --> lSuccess
<aPos> := { nX, nY }
<aPos> is an array containing the new x and y coordinates of the lower left corner for the ActiveX control.
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.

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


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().


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.