ZenMenus

 

Remarks Properties Methods Samples

ED
avaliable
RT
read only

Remarks:Top

This object manages context and main menus.

Properties:Top

Count Parent  

Methods:Top

CheckIn CheckOut Create
Delete Export Get
Import IsCheckedOut IsDifferent
IsLocked Item UndoCheckOut

Samples:Top

Sub zenOnMenus()

Dim zMenus As ZenMenus  'Parent object
Dim zMenu As ZenMenu	'Child object
Dim i As Integer		'Loop variable

Set zMenus = MyWorkspace.ActiveDocument.ZenMenus

'Loop creates five context and five main menus
For i = 1 To 5
'Creates a context menu
Set zMenu = zMenus.Create("context_" & i)
'False for context menu
zMenu.IsPulldown = False

'Creates a main menu
Set zMenu = zMenus.Create("main_" & i)
'True for main menu
zMenu.IsPulldown = True
Next i

'Check if all items have been created (Hint: counting starts at 0 until .count-1)
For i = 0 To zMenus.Count - 1
	Debug.Print "Item " & i & " = " & zMenus.Item(i).Name
Next i

End Sub