Table of Contents

TTMSFNCPopupMenu.OnBeforeDrawMenuItemImage Event

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

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

Syntax

OnBeforeDrawMenuItemImage: TTMSFNCPopupMenuBeforeDrawMenuItemImage;

Parameters

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