Xbasic
SYS_ID_RESTORE Function
Syntax
V SYS_ID_RESTORE([C window_name])
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_RESTORE() returns Window_Name to the size and screen coordinates that it has before a SYS_ID_MAXIMIZE() or SYS_ID_MINIMIZE() command.
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_minimize("Untitled - Notepad") sys_id_position_get("Untitled - Notepad") -> "Taskbar" sys_id_maximize("Untitled - Notepad") sys_id_position_get("Untitled - Notepad") -> "Desktop" sys_id_restore("Untitled - Notepad") -> Must use sys_id_restore() after sys_id_maximize() to remove the window from the "Desktop" sys_id_position_get("Untitled - Notepad") -> "9.031250x3.031250" -> New left and top coordinates of the window in inches
Limitations
Desktop applications only.
See Also