Classes

Method PhysicalScreen():setWindow() Foundation

Displays a window on a physical screen.

Syntax
:setWindow( <oWindow>|<nHwnd>, [<aPos] ) --> self
Parameters
<oWindow>
The window object. This must be an instance of the XbpDialog() or XbpCrt()classes or a derived class.
<nHwnd>
Instead of a window object, a window handle used with the Win32 API can be used in the <nHwnd> parameter. This must be a top-level window. Passing a child window in <nHwnd> is not supported.
<aPos>
An array with the x and y coordinates of the window on the physical screen. This parameter is optional. If nothing is specified for <aPos>, the window is centered within the usable area of the screen.
Return

The physical screen object (self).

Description

The method :setWindow() displays the specified window on the physical screen. By default, the window is centered within the work area of the screen. If the window should be displayed at a different position instead, the position must be specified in the :<aPos> parameter. Both the x and the y coordinate specified in <aPos> are assumed to be relative to the starting point of the usable screen area.

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.