hm_disablepopup

Removes one item from a popup menu.

Syntax

hm_disablepopup panel_name popup_id target_id

Type

HyperMesh Tcl GUI

Description

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 disable.

Example

To disable 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_disablepopup 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
}