formZ SDK | 5.0 API Reference | System | User Interface (FUIM) | Script Only Templates

# fz_fuim_script_new_menu

Description

Creates a new menu item.
Pass FZ_FUIM_NONE for id to not assign a specific item id. An id will be created and assigned to the item.
Pass FZ_FUIM_ROOT for parent if there is no parent group.
item_func is an optional function that is called to handle actions occurring to this item.

Parameters

fuim_tmpl [Input]

fuim manager

parent [Input]

parent group

flags [Input]

construction flags

Bit Flag Type: fz_fuim_flag_enum

is_pop [Input]

if TRUE, the menu is a popup, otherwise it is a standard menu

titl_str [Input, Optional]

menu title

Default Value: a menu item without a name is created

menu_items [Input]

an array of strings, which defines the items in the menu.

nitems [Input]

the number of menu items

Returns

Menu id

Availability

5.0.0.0