NXOpen.UF.Ui.DisplayMenu

Ui.DisplayMenu()

Refer to UF_UI_display_menu for documentation.

Signature: DisplayMenu(title, defaultItem, items, numItems)

Parameters:
  • title (str) – Menu title (displayed on the cue line, 80 characters maximum
  • defaultItem (int) – Specify default menu item, if ip2 = 0 then no default, and the OK button will not be enabled. The range of ip2 is 0..ip4. If you have 14 menu items and set ip2 = 14, then menu item 14 will be highlighted as the default. NOTE: Changing the focused menu item with Tab or Arrow key does not change the default menu item. Pressing the OK button (or MB2) will select the Default item, which may not be the item that has focus.
  • items (list of str) – String array containing the menu items. If you use a hyphen(s) “-”, for one of your options, this creates a nonsele ctable separator line. We do not recommend using the asterisk character “*” in menu prompts or menu options.
  • numItems (int) – The number of items in the items array. This must be
Returns:

1 = Back2 = Cancel Operation5-18 = The given menu item was selected19 = Disallowed state, unable to bring up dialogSee Also:History:

Return type:

int

License requirements: None