Method XbpToolBar():setPosAndSize() Foundation

Changes position and size of the Xbase Part.

:setPosAndSize( <aPos>, <aSize> [,<lPaint>] ) --> lSuccess
<aPos> := { nX, nY }
<aPos> is an array containing the new x and y coordinates of the lower left corner for the window.
<aSize> := { nXsize, nYsize }
<aSize> is an array containing the new dimensions of the XbpToolBar object window in the x and y directions.

The height of an XbpToolBar object is computed dynamically and cannot be controlled by the Xbase++ application. It is adjusted with respect to the captions and images displayed in the tool bar object's buttons. Consequently, the value specified in array element nYSize is ignored!

The parameter <lPaint> specifies whether the object is to be automatically redrawn when the method :setPosAndSize() returns.

The repaint behaviour cannot be changed for this Xbase Part. With XbpToolBar objects, a repaint is always performed when executing :setPosAndSize().


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


The method :setPosAndSize() changes the position and the size of a tool bar object. This is much faster than calling the two methods :setPos()and :setSize() and leads to the same result.


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.