Xbasic
SYS_ID_RESIZE Function
Syntax
V SYS_ID_RESIZE(C window_name,N x,N y)
Arguments
- window_name
The name of the window as reported by SYS_ID_ENUM()or seen on the window's title bar.
- x
The new width of the window in inches.
- y
The new height of the window in inches.
Description
SYS_ID_RESIZE() resizes the window named Window_Name to the dimensions specified by Width and Height.
Example
The following example assumes that Notepad is open and the name of the window (as seen on the title bar) is "Untitled - Notepad".
dim ww as N dim wh as N sys_id_show("Untitled - Notepad") 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 sys_id_resize("Untitled - Notepad", ww + 1, wh + 1) -> resize the window to 1 inch wider, 1 inch higher
Limitations
Desktop applications only.
See Also