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

OnGetNumberOfPopupMenuItems: TTMSFNCPopupMenuGetNumberOfPopupMenuItems;

Parameters

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