Window.GetSize

table Window.GetSize ( 

number WndHandle )

Example 1

app_size = Window.GetSize(app_handle);

Gets the pixel dimensions of the window whose handle is stored in "app_handle" and stores the width and height values in the "app_size" table. The dimensions can be accessed by referencing app_size.Width and app_size.Height.

Example 2

tWindowSize = Window.GetSize(Application.GetWndHandle());

Gets the pixel dimensions of the installation window and stores the width and height values in the "tWindowSize" table. The dimensions can be accessed by referencing tWindowSize.Width and tWindowSize.Height. This action uses the Application.GetWndHandle to get the installation's window handle.

See also:  Related Actions