Home > Class Reference > ENSLIB namespace > %ZEN.Component.menuCell
Private  Storage   

%ZEN.Component.menuCell


abstract class %ZEN.Component.menuCell

This is an internal, abstract class that is used to provide some commonality between menu and menuItem.

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
12 1


Summary


Properties
caption disabled help image imageHeight
imageWidth link linkResource onclick target

Methods
%DrawMenuCell

Subclasses
%ZEN.Component.menu %ZEN.Component.menuItem

Properties


• property caption as %ZEN.Datatype.caption;
Value to display for menu item.
• property disabled as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, this menuItem is disabled.
• property help as %ZEN.Datatype.caption;
(Optional) Help message associated with this menu item.
• property image as %ZEN.Datatype.uri;
Optional uri of image to display for this menuItem.
• property imageHeight as %ZEN.Datatype.length [ InitialExpression = 16 ];
Height of image in pixels.
• property imageWidth as %ZEN.Datatype.length [ InitialExpression = 16 ];
Width of image in pixels.
• property link as %ZEN.Datatype.uri;
URL to go to when menu item is chosen. This can contain a ZENEXPRESSION.
• property linkResource as %ZEN.Datatype.resource;
(Optional) If specified, user must hold this resource or this item is disabled.
• property onclick as %ZEN.Datatype.eventHandler;
onclick event handler: This event is fired when the mouse is clicked on the menuItem. Use this instead of link if you want to execute code when a menu is invoked.
If defined, the link is ignored.
• property target as %ZEN.Datatype.string;
The HTML target value applied to the link for this menu item.
This controls where the new document will be displayed when the user clicks on a link. Typically this is the name of a frame.
HTML also defines for special values for target:
  • "_blank" - open the link in a new window.
  • "_parent" - open the link in our parent window.
  • "_self" - open the link in current window.
  • "_top" - open the link in topmost window.

Methods


• method %DrawMenuCell(pShowArrow As %Boolean = 0)
Draw contents of menu cell