ZenMenu.Create



Create(bsName As String,bPulldown As Boolean) As ZenMenuItem

Parameters

bsName As String
A string which defines the name of the menu item.

Example: "Test"
bPulldown As Boolean
This parameter can be set true or false without any effect.
ED
avaliable
RT
not used

Remarks

With this function new context and main menu items can be created.

Sample:


Sub CreateMenuItem()

Dim zMenus As ZenMenus  'Parent object
Dim zMenu As ZenMenu	'Child object of ZenMenus
Dim zMenuItem As ZenMenuItem 'Child object of ZenMenu

Set zMenus = MyWorkspace.ActiveDocument.ZenMenus

'Select a context or main menu
Set zMenu = zMenus.Item(0)

'Create an item with the name "Test" in the selected menu
Set zMenuItem = zMenu.Create("Test", True)

End Sub

See Also

ZenMenu, ZenMenuItem