Method XbpActiveXControl():setSize() Foundation

Changes the size of the XbpActiveXControl.

Syntax
:setSize( <aSize>, [<lPaint>] ) --> lSuccess
Parameters
<aSize>
<aSize> is an array containing the new dimensions of the XbpActiveXControl in the x and y directions.
<lPaint>
The optional logical parameter <lPaint> specifies whether the control should redraw itself when its 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 change.
Return

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

Description

The method :setSize() changes the size of the ActiveX control. The current size is determined using the method :currentSize().

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, :setSize() returns .F. (false).

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.