TTMSFNCPopupMenu.OnMenuItemAdd Event
Fires before a menu item control is added to the view; set
AAllowtoFalseto suppress adding the item.
API unit family: TMSFNCPopupMenu
Declaring type: TTMSFNCPopupMenu
Inherited from: TTMSFNCCustomPopupMenu
Syntax
OnMenuItemAdd: TTMSFNCPopupMenuItemAllowEvent;
Parameters
| Name | Description |
|---|---|
Sender |
The popup menu that raised the event. |
AMenuItem |
The data item that is about to be added. |
AAllow |
Set to False to prevent the item from being added to the view. |