Table of Contents

TTMSFNCPopupMenu.OnGetNumberOfSubMenuItems Event

Fires to allow overriding the number of sub-menu items displayed under the specified parent item.

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

Syntax

OnGetNumberOfSubMenuItems: TTMSFNCPopupMenuGetNumberOfSubMenuItems;

Parameters

Name Description
Sender The popup menu that raised the event.
AParentMenuItemControl The parent item whose sub-item count may be overridden.
ADisplayItemCount Override this value to change the number of visible sub-items.