hiOpenWindow
hiOpenWindow( [?bBoxl_boxSpec] [?typet_widgetType] [?appTypet_applicationType] [?menusl_menus] [?labelsl_labels] [?helpt_helpString] [?scrollg_scrollbars] [?formg_form] [?closeProcs_closeProc] [?iconPositionl_iconPosition] [?sessiong_sessionWindow] [?tabTitleg_tabTitle] [?tabIcong_tabIcon] [?tabTipg_tabTip] ) =>w_windowId/nil
Description
Creates and displays a window. This function displays the new window in a session window if the session window argument is specified or if the new window is a graphics window.
If the session window already contains windows, a new tab is created for the new window and it is raised to the top.
The new window becomes the current window. If you do not want this window ever to become the current window, you can set the window property neverCurrentWindow to t:
window->neverCurrentWindow = t
When this property is set on a current window, the current window gets reset to the last current window or to another open window. If another window cannot be found, the current window resets to nil.
Setting the neverCurrentWindow property can affect previously saved replay files that contain this window, and these log files might not replay correctly.
If you set the neverCurrentWindow property to t and you use .tgf help files, you need to specify the correct application ID for help to work correctly. See the note in the description of the t_help argument for details.
This function is not available in Concept SKILL. For more information, see
Arguments
|
Lower left and upper right corners of the window in screen coordinates (assuming 0:0 as the lower left corner of the screen):
where x1 is the lower left
The symbols
If l_boxSpec is
You can use the |
|
|
One of the following strings:
For information about how to create hypertext, see |
|
|
String representing the window application type or name. This string is also used as the window’s bindkey prefix. If not specified, t_applicationType defaults to |
|
|
List of menus to appear in the window banner. Each menu should be either the return value of hiCreatePulldownMenu or the menu symbol representing that value. These menus are placed from left to right on the window banner in the order listed. Each menu can be placed only once on a window banner. |
|
|
List of strings to appear in the label banner. These labels are placed from left to right on the label banner in the order listed. A maximum of 4 labels can be placed on each window. |
|
|
Help string for the window, which is used to reference a
The help string for a window can also be set at any time using the Cadence applications may modify their window help strings at any time.
When a user clicks Help in a window, the help string is used for the help symbol that is looked for in the
The help string can also be used to modify the
For example,
set the For more information about the online help mechanism, see Online Help Mechanism
For windows that cannot become the current window (because the For windows help to work correctly, either the t_help or t_appType argument or both must be set when you create the window. |
|
|
Either |
|
|
SKILL representation of a form returned by |
|
|
String or symbol for the name of the procedure to be performed when the specified window is closed. This closing procedure is strictly for clean up and must not call
A close procedure is called before any SKILL close procedures. If the C procedure returns |
|
|
Icon location (in X Window System screen coordinates) for the window. This causes the window to be iconified initially. If l_iconPosition is
In addition to the |
|
|
The session window in which you want to display the new window. |
|
|
The tab title for the new window. If the session window already contains windows, a tab is created for the new window.
After the window is created, you can use the |
|
|
The icon to be displayed on the tab for the new window.
After the window is created, you can use the |
|
|
The tooltip that is displayed whenever the cursor hovers over the tab.
After the window is created, you can use the |
|
Values Returned
Examples
hiOpenWindow( ?bBox list ( 0:0 300:300 )
?type "graphics"
?menus list ( hiOpenMenu ’hiDMMenu )
?labels ’( "label 1" "label 2" )
?scroll t
)
=> window:2
hiOpenWindow( ?bBox ’interactive ?type “form” ?appType “formdow”
?form hiCreateForm( ’myform “My Form” “”
list ( hiCreateStringField( ?name ’s ?prompt “Enter name:” ) )
“” )
)
=> window:3
Related Topics
Return to top