GraffitiMenuItem

Enumerations #

Name Values
This class exposes no enumerations.

Constants #

Name Type Value
This class exposes no constants.

Events #

Definition Description
This class exposes no events.

Methods #

Definition Description
Constructor( ItemID as String, ItemCaption as String, ItemIcon as String, ItemDisabled as Boolean = False, ItemAccessKey as String = “” ) Creates an instance of the class with the parameters as property values.
Constructor( MenuID as String )
Constructor( Separator as Boolean )
ItemAt( itemIndex as Integer ) Returns the child item at the specified index.
ItemLastIndex() As Integer Returns the maximum child index.

Properties #

Name Type Default Value Description
AccessKey String “” Character which, when pressed, will cause the menu to fire a click on this item.
Caption String “” Text of the menu item.
Children() GraffitiWebContextMenuItem Nil Children to be displayed as a sub-menu.
Disabled Boolean False If true, the item will display disabled and will not accept keystrokes or clicks.
HasCheckbox Boolean False When True, the icon area will act as a toggle-able checkbox.
Icon String “” FontAwesome icon name to display.
IconObject Variant Nil Can be set to types Picture, WebPicture, WebFile, or String for URLs.
ID String “” ID for determining which item was clicked.
IsSeparator Boolean False If true, the item will display as a separator with no text or icon.
Style WebStyle Nil Applies the supplied WebStyle to this ContextMenuItem.
Tag Variant Nil Developer storage.
Value Boolean False The current boolean value assigned to the item for checkbox purposes.

Examples #

There are currently no examples for this class.