Product Documentation
Cadence User Interface SKILL Reference
Product Version IC23.1, September 2023

hiRegCloseProc

hiRegCloseProc(
w_windowId 
s_closeProc 
) 
=> t

Description

Registers the procedure to be called when a window is closed. You can register closing procedures for windows, session windows, and dockable windows. A session window’s closing procedure is called before the closing procedure of any of the windows it contains.

If the session window’s closing procedure returns nil, the closing procedures of the windows it contains are aborted.

This function is not available in Concept SKILL. For more information, see Design Entry HDL–SKILL Routines.

Arguments

w_windowId

ID of the window, session window, or dockable window for which you are registering the closing procedure.

s_closeProc

Name of the procedure to be executed when the window is closed. The format for this procedure should be closeProc(windowId). This closing procedure is strictly for clean up and must not call hiCloseWindow, any enterfunctions, or any blocking functions that display forms or dialog boxes. Because this procedure is called regardless of how you close the window (from a window manager or through Cadence software), you might need to delete existing calls to clean-up functions from the user interface.

A C closing procedure is called before any SKILL closing procedures. If the C procedure returns nil, none of the SKILL closing procedures are called and the window remains open.

Value Returned

t

The closing procedure is registered.

Example

hiRegCloseProc( window ( 2 ) ’myFunction )
=> t

Related Topics

Window Functions


Return to top
 ⠀
X