Skip to main content
Table of Contents

TTMSFNCMenuItemDropDownButtonControl.GetFirstMenuItem Method

Returns the first selectable (or any) item in the parent menu view.

API unit family: TMSFNCPopupMenu Declaring type: TTMSFNCMenuItemDropDownButtonControl Inherited from: TTMSFNCMenuItemControl

Syntax

GeneratedPascalC++
function GetFirstMenuItem(ASelectable: Boolean = True): TTMSFNCMenuItemControl;
TTMSFNCMenuItemControl* __fastcall GetFirstMenuItem(bool ASelectable = true);

Parameters

Name Description
ASelectable When True, returns only items that can be selected. Default is True.

Returns

The first matching menu item control, or nil if none exists.