Skip to content

TWebPopupMenu

Description

Below is a list of the most important properties methods and events for TWebPopupMenu. Represents a popup menu control with support for sub-menus that can be assigned to the Popup property of other controls to show as context menu.

Designtime Runtime

HTML template tag

The HTML tag the component can be associated with in an HTML template. Assign the ID attribute with a unique value and set the identical value to the ElementID property. Detailed information can be found in the Use of HTML templates topic.

HTML tag <DIV ID=”UniqueID”></DIV>
ElementID UniqueID

Properties for TWebPopupMenu

Property Description
Appearance
Container Sets the external control the menu is displayed in. For example, a TWebPanel control. By default, the menu is displayed in the top left corner of the browser window.
ElementClassName Optionally sets the CSS classname for the label when styling via CSS is used
Items

Methods for TWebPopupMenu

Method Description
Popup(X,Y: integer): Shows the popup menu at coordinate X,Y

Events for TWebPopupMenu

Event Description
OnChange Event triggered when a menu item is clicked.
OnPopup Event triggered when the popup menu is being shown.