CreateMenuItem

[method icon] CreateMenuItem(sText$)

Create a menu item

sText$ String Text of menu item

Returns result of type OBJECT or SYM

Applies to: Menu , MenuItem

Introduced in KCML version 6.20


[method icon] CreateMenuItem(sText$, iStyle)

Create a menu item

sText$ String Text of menu item
iStyle KCML_MENUSTYLE_ENUM Style bits

Returns result of type OBJECT or SYM

Applies to: Menu , MenuItem

Introduced in KCML version 6.60


>

CreateMenuItem

This method is used to add top-level menu items to a menu control or to add sub menu items to a menu item. This method can only be used in the Create() event. See CreateControl() for more details and examples.

See also

Menu methods, properties and events. MenuItem methods, properties and events.