Table of Contents

TTMSFNCCustomPopupMenu Class

Base class for the popup menu component, managing items, appearance, bitmap container, and all menu events.

API unit family: TMSFNCPopupMenu Inherits from: TCustomPopupMenu Implements: ITMSFNCAdaptToStyle

Syntax

TTMSFNCCustomPopupMenu = class(TCustomPopupMenu, ITMSFNCAdaptToStyle)

Properties

Name Description
IsOpen When True, the menu popup is currently visible.

Methods

Name Description
AddMenuItem Adds a new top-level item with the given text and type and returns it.
AddMenuSeparatorItem Adds a separator as a top-level item and returns it.
GetCheckedMenuItemByGroupName Returns the checked item in the radio group with the given name, or nil if none is checked.
GetMenuItemByText Returns the first item whose Text matches the given string, or nil if not found.
Popup Shows the menu at the specified screen coordinates.
SelectMenuItemControl Programmatically selects the given item control in the open menu view.