Classes

Method XbpDialog():calcFrameRect() Foundation

Returns the outside dimensions of the dialog window.

Syntax
:calcFrameRect( <aClientRect> ) --> aFrameRect
Parameters
<aClientRect> := { nX, nY, nXsize, nYsize }
<aClientRect> is an array containing four elements that describes the inside dimensions of the dialog window. This is the size of the drawing area of the window (:drawingArea).
Return

This method returns an array containing four elements that describes the outside dimensions of the dialog window.

Description

The :calcFrameRect() method calculates the size of the dialog window based on the inside dimensions of the window. The inside dimensions are the size of the drawing area (:drawingArea). For example, the drawing area might be 400*200 pixels, but the outside dimensions of the dialog window are larger because of the border thickness and the title bar if it is displayed. The actual outside dimensions are calculated using :calcFrameRect().

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.