Xbasic

SYS_ID_SIZE_GET Function

Syntax

Size_String as C = SYS_ID_SIZE_GET( Window_Name as C [, Flags as C ] )

Arguments

Window_Name

The name of the window as reported by SYS_ID_ENUM()or seen on the window's title bar.

Description

SYS_ID_SIZE_GET() returns a character string containing the width and height in inches of Window_Name.

Example

The following example assumes that Notepad is open and the name of the window (as seen on the title bar) is "Untitled - Notepad".

sys_id_show("Untitled - Notepad")
sys_id_resize("Untitled - Notepad", 3, 3) -> resize the window to 3 inches wide, 3 inches high
sys_id_size_get("Untitled - Notepad") -> "3.000000x3.000000"
dim ww as N
dim wh as N
ww = valsys_id_size_get("Untitled - Notepad"), 1, "x"? -> get the window width
wh = valsys_id_size_get("Untitled - Notepad"), 2, "x"? -> get the window height

Limitations

Desktop applications only.

See Also