Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

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

w_windowId

The ID of the window whose status you want to set.

t_appName

The text or symbolic name of the application whose status you want to set.

n_status

A fixed number that specifies the current state of t_appName in w_windowId.

Value Returned

n_previousStatus

Previous status for appName on w_windowId or ~0 if the previous status was undefined.

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
 ⠀
X