Skip to main content
Table of Contents

TTMSFNCPopupMenu.OnGetNumberOfPopupMenuItems Event

Fires to allow overriding the total number of top-level items displayed in the popup menu.

API unit family: TMSFNCPopupMenu Declaring type: TTMSFNCPopupMenu Inherited from: TTMSFNCCustomPopupMenu

Syntax

FMX.TMSFNCPopupMenu.hppPascalC++
OnGetNumberOfPopupMenuItems: TTMSFNCPopupMenuGetNumberOfPopupMenuItems;
__property TTMSFNCPopupMenuGetNumberOfPopupMenuItems OnGetNumberOfPopupMenuItems = {read=FOnGetNumberOfPopupMenuItems, write=FOnGetNumberOfPopupMenuItems};

Parameters

Name Description
Sender The popup menu that raised the event.
ADisplayItemCount Override this value to change the number of visible top-level items.