| DAZ Script | |
|---|---|
| MenuType | { CustomMenu, PaneMenu, ViewToolMenu, SaveAsMenu, OpenRecentMenu } |
| DAZ Script | |
|---|---|
| void | appendItemsFromMenu ( DzActionMenu menu ) |
| void | clear () |
| void | exec () |
| void | exec ( Point pos ) |
| DzActionMenu | findOrCreateSubMenu ( String path, Boolean asDefault=false ) |
| DzActionMenu | findSubMenu ( String path ) |
| DzActionMenuItem | getItem ( Number i ) |
| Array | getItemList () |
| Number | getNumItems () |
| DzActionMenuItem | getParentItem () |
| String | getPath () |
| Boolean | hasItems () |
| void | insertAction ( String identifier, Number i=-1 ) |
| void | insertCustomAction ( String guid, Number i=-1 ) |
| void | insertFileMergeAction ( String fileName, String label=“”, Number i=-1 ) |
| void | insertFileOpenAction ( String fileName, String label=“”, Number i=-1 ) |
| void | insertItem ( DzActionMenuItem item, Number i=-1 ) |
| void | insertMenu ( String label, DzActionMenu menu, Number i=-1 ) |
| void | insertSeparator ( Number i=-1 ) |
| void | insertSubMenu ( String label, DzActionMenu menu, Boolean asDefault=false, Number i=-1 ) |
| void | moveItem ( DzActionMenuItem item, Number i ) |
| void | removeItem ( DzActionMenuItem item ) |
| void | simplifySeparators () |
| void | defaultChanged ( Boolean yesNo ) |
| void | itemListChanged () |
See Also:
TODO: Add description.
Holds whether or not this menu is considered to be created by the application (true) or created by the user (false).
Since:
Holds the type of this menu (Read Only until 4.6.0.74)
void : appendItemsFromMenu( DzActionMenu menu )
Appends menu items from the specified menu into this menu.
Parameter(s):
Since:
void : clear()
Removes all items from this menu.
Attention:
void : exec()
Displays this menu to the user.
Displays this menu to the user at a specified position.
Parameter(s):
DzActionMenu : findOrCreateSubMenu( String path, Boolean asDefault=false )
Parameter(s):
true, any menus that are created will be marked as a default menu; created/placed by the application. If false (default), any menus created will be marked as a custom menu; created/placed by the user.Return Value:
Since:
DzActionMenu : findSubMenu( String path )
Parameter(s):
Return Value:
DzActionMenuItem : getItem( Number i )
Parameter(s):
Return Value:
Array : getItemList()
Return Value:
Number : getNumItems()
Return Value:
DzActionMenuItem : getParentItem()
Return Value:
Since:
Return Value:
Since:
Return Value:
true if there are items in this menu, otherwise false.void : insertAction( String identifier, Number i=-1 )
Inserts an action into this menu at the specified position.
Parameter(s):
void : insertCustomAction( String guid, Number i=-1 )
Inserts a custom action into this menu at the specified position.
Parameter(s):
Attention:
void : insertFileMergeAction( String fileName, String label=“”, Number i=-1 )
Inserts a file merge action into this menu at the specified position.
Parameter(s):
fileName if not specified.Attention:
Since:
void : insertFileOpenAction( String fileName, String label=“”, Number i=-1 )
Inserts a file open action into this menu at the specified position.
Parameter(s):
fileName if not specified.Attention:
Since:
void : insertItem( DzActionMenuItem item, Number i=-1 )
Inserts a menu item into this menu at a specified position.
Parameter(s):
Attention:
See Also:
void : insertMenu( String label, DzActionMenu menu, Number i=-1 )
Deprecated
Exists only to keep old code from crashing. Do not use in new code. Use insertSubMenu() instead.
void : insertSeparator( Number i=-1 )
Inserts a separator into this menu at the specified position.
Parameter(s):
Attention:
void : insertSubMenu( String label, DzActionMenu menu, Boolean asDefault=false, Number i=-1 )
Inserts a menu into this menu at the specified position as a submenu.
Parameter(s):
true, this menu is inserted as a default menu. If false (default) this menu is inserted as a custom menu.Attention:
See Also:
Since:
void : moveItem( DzActionMenuItem item, Number i )
Moves a menu item in this menu to a specified position.
Parameter(s):
Attention:
item is not in this menu.See Also:
Since:
void : removeItem( DzActionMenuItem item )
Removes a menu item from this menu.
Parameter(s):
Attention:
void : simplifySeparators()
Removes any duplicate separators from this menu by replacing two or more adjacent separators with a single separator.
void : defaultChanged( Boolean yesNo )
Signature:“defaultChanged(bool)”
Emitted when the default state of this menu has been changed.
Parameter(s):
Since:
void : itemListChanged()
Signature:“itemListChanged()”
Emitted when items are added to or removed from this menu.