Table of Contents

TTMSFNCWebBrowserCustomContextMenuItem Class

A context menu item created by the application and added to the browser context menu via OnGetContextMenu. Access via TTMSFNCWebBrowserContextMenuItem.AsCustom.

API unit family: TMSFNCWebBrowser Inherits from: TTMSFNCWebBrowserContextMenuItem

Syntax

TTMSFNCWebBrowserCustomContextMenuItem = class(TTMSFNCWebBrowserContextMenuItem)

Properties

Name Description
Checked When True, a check-box or radio-button item is checked. (inherited from TTMSFNCWebBrowserContextMenuItem)
Children Child items for a sub-menu item (when Kind is ikSubMenu). (inherited from TTMSFNCWebBrowserContextMenuItem)
DataBoolean Application-defined Boolean value for associating custom data with this menu item. True when the caller has set this flag; False by default. (inherited from TTMSFNCWebBrowserContextMenuItem)
DataInteger Application-defined integer for associating custom data with this menu item. (inherited from TTMSFNCWebBrowserContextMenuItem)
DataObject Application-defined object reference for associating custom data with this menu item. (inherited from TTMSFNCWebBrowserContextMenuItem)
DataPointer Application-defined pointer for associating custom data with this menu item. (inherited from TTMSFNCWebBrowserContextMenuItem)
DataString Application-defined string for associating custom data with this menu item. (inherited from TTMSFNCWebBrowserContextMenuItem)
Enabled When True, the item is interactive and can be clicked; when False, the item appears greyed out. (inherited from TTMSFNCWebBrowserContextMenuItem)
Icon Optional icon bitmap displayed next to the item text. (inherited from TTMSFNCWebBrowserContextMenuItem)
Kind Visual and behavioural kind of this item. See TTMSFNCWebBrowserContextMenuItemKind. (inherited from TTMSFNCWebBrowserContextMenuItem)
Name Internal identifier name of the menu item. (inherited from TTMSFNCWebBrowserContextMenuItem)
ParentItem Parent item for nested sub-menu items; nil for top-level items.
Text Display text shown in the context menu for this item. (inherited from TTMSFNCWebBrowserContextMenuItem)

Methods

Name Description
AsCustom Casts this item to TTMSFNCWebBrowserCustomContextMenuItem; returns nil if the item is a system item. (inherited from TTMSFNCWebBrowserContextMenuItem)
AsSystem Casts this item to TTMSFNCWebBrowserSystemContextMenuItem; returns nil if the item is a custom item. (inherited from TTMSFNCWebBrowserContextMenuItem)