Method XbpActiveXControl():setPosAndSize() Foundation

Changes position and size of the ActiveX control.

Syntax
:setPosAndSize( <aPos>, <aSize>, [<lPaint>] ) --> lSuccess
Parameters
<aPos>
<aPos> is an array containing the new x and y coordinates of the lower left corner for the XbpActiveXControl.
<aSize>
<aSize> is an array containing the new dimensions of the ActiveX control in the x and y directions.
<lRedraw>
The optional logical parameter <lPaint> specifies whether the control should redraw itself when its position and/or size 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 size or position change.
Return

The method returns the value .T. (true) if position and size of the XbpActiveXControl is changed, otherwise .F. (false) is returned.

Description

The method setPosAndSize() changes the position and the size of an ActiveX control. This is much faster than calling the two methods :setPos() and :setSize() and leads to the same result.

Changing the size of an ActiveX control is not possible if the flag value OLECTRL_ONLYICONIC is set in the :controlFlags instance variable. In this case, only the position of the control is changed by method :!:setPosAndSize().

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.