Skip to main content
Table of Contents

TTMSFNCPopupMenu.OnBeforeDrawMenuItem Event

Fires before an item row is drawn; set ADefaultDraw to False to take over drawing entirely.

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

Syntax

FMX.TMSFNCPopupMenu.hppPascalC++
OnBeforeDrawMenuItem: TTMSFNCPopupMenuBeforeDrawMenuItem;
__property TTMSFNCPopupMenuBeforeDrawMenuItem OnBeforeDrawMenuItem = {read=FOnBeforeDrawMenuItem, write=FOnBeforeDrawMenuItem};

Parameters

Name Description
Sender The popup menu that raised the event.
AGraphics Canvas used to draw the item row.
AMenuItemControl The item control being drawn.
ADrawingParameters Drawing bounds and state; modify to adjust layout.
AAllow Set to False to skip drawing this item entirely.
ADefaultDraw Set to False to suppress built-in drawing and handle it yourself.