hm_enablepopup

Adds a previously removed item back to a popup menu.

Syntax

hm_enablepopup panel_name popup_id target_id

Type

HyperMesh Tcl GUI

Description

This command adds a previously removed item back to a popup menu.

Menu items (such as buttons, radio buttons, etc.) have a name and a number. hm_getitemnumber can be used to get the number for a menu item. A popup points to other menu items. Only one of these can be current. Once a menu item becomes current it can turn other areas of the menu on.

Inputs

panel_name
The name of the panel from which the popup is accessed.
popup_id
The ID of the selector to which the popup is associated.
target_id
The ID of the popup item to enable.

Example

To enable the "divide quads" popup from the Split panel:

set item_num [hm_getitemnumber split "divide quads"]
set item_owner [hm_getitemowner split $item_num]
hm_enablepopup split $item_owner $item_num

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}