Skip to main content
Table of Contents

TTMSFNCMenuItemSeparatorControl.GetLastMenuItem Method

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

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

Syntax

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

Parameters

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

Returns

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