Read-only. Returns an instance of the Menu object, corresponding to the user-defined menu of the application/document.
Applies to: Application object, Document object
[[Set] menuRet =] object.CustomMenu |
The CustomMenu property syntax has these parts:
Part | Description |
object | Required. An expression that returns an instance of the object from the Applies to list. |
menuRet | Optional. A Menu type variable. |
There are two types of user-defined menu: of the application and of the document (the Application and Document objects respectively). The user-defined menu is located in the Tools menu of ConceptDraw and is visible if contains at least one item. The Tools menu can incorporate no more than two user-defined menus at a time - one for the application, the other for the active document (the ActiveDoc property).
This example contains an application-level script. It displays the properties of the application's user-defined menu CustomMenu.
thisApp.CustomMenu.Caption = "App Custom Menu" thisApp.CustomMenu.Prompt = "App Custom Menu Prompt" TRACE "------------------------" TRACE "thisApp.CustomMenu.CmdID = " & thisApp.CustomMenu.CmdID TRACE "thisApp.CustomMenu.Caption = " & thisApp.CustomMenu.Caption TRACE "thisApp.CustomMenu.Prompt = " & thisApp.CustomMenu.Prompt TRACE "thisApp.CustomMenu.Enabled = " & thisApp.CustomMenu.Enabled TRACE "------------------------" |
See Also |
Menu object |