geSetWindowStatus
geSetWindowStatus(w_windowId t_appName n_status) =>n_previousStatus
Description
Sets the status for w_windowId and t_appName to n_status.
n_status is a bit field that indicates the current status of the window. Each bit corresponds to a status such as “window is editable” or “can create instances.” Each application can define its own status field. When geUpdateWindowMenus is called, the enable predicate of each menu is compared with the corresponding status. If all the enable predicates on a menu are TRUE, the menu is enabled. Otherwise, the menu is disabled.
Arguments
|
The text or symbolic name of the application whose status you want to set. |
|
|
A fixed number that specifies the current state of t_appName in w_windowId. |
Value Returned
|
Previous status for appName on w_windowId or |
Examples
Sets the status of the window and the application.
windowId = window(2)
=> window:2
geSetWindowStatus(windowId ’default 64)
=> 66
The menus are not updated until geUpdateWindowMenus is called. geUpdateWindowMenus is automatically called by the layout editor.
Related Topics
Automatic Menu Enabling Functions
Return to top