Table of Contents

TTMSFNCPopupMenu.OnBeforeDrawMenuItemText Event

Fires before the primary text of an item is drawn; set ADefaultDraw to False to take over drawing.

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

Syntax

OnBeforeDrawMenuItemText: TTMSFNCPopupMenuBeforeDrawMenuItemText;

Parameters

Name Description
Sender The popup menu that raised the event.
AGraphics Canvas used to draw the primary text.
AMenuItemControl The item control whose text is being drawn.
ADrawingParameters Text bounds and font settings; modify to adjust rendering.
AAllow Set to False to skip text drawing entirely.
ADefaultDraw Set to False to suppress built-in text drawing and handle it yourself.