Skip to main content

%Studio.Extension.MenuItem

Class %Studio.Extension.MenuItem Extends (%SerialObject, %XML.Adaptor) [ Inheritance = right, System = 3 ]

Table of user defined menu items for Studio user interface extention

Properties

Name

Property Name As %String(MAXLEN = 128, XMLPROJECTION = "ATTRIBUTE");

Resource name of this menu item

Enabled

Property Enabled As %Boolean(XMLPROJECTION = "ATTRIBUTE") [ InitialExpression = "1" ];

True if this menu item is enabled, false to disable this menu item

Save

Property Save As %String(XMLPROJECTION = "ATTRIBUTE") [ InitialExpression = "000" ];

If this menu item is selected does the current document/project need to be saved? This is a bit string with '000' meaning nothing should be saved and a '1' in the following position meaning:

  • 1 - Current document must be saved
  • 2 - Project must be saved
  • 3 - Force 'Save All'

Separator

Property Separator As %Boolean(XMLPROJECTION = "ATTRIBUTE") [ InitialExpression = 0 ];

If true then this is a menu separator rather than a menu item. All other properties will be ignored for a separator