TdxAlertWindowManager.OnCustomDrawMessageText Event
Enables you to custom paint an alert window‘s message text.
Declaration
property OnCustomDrawMessageText: TdxAlertWindowManagerCustomDrawMessageTextEvent read; write;
Remarks
Sender
specifies the alert window manager that fired the event.
AAlertWindow
specifies the alert window being custom painted.
ACanvas
specifies the drawing surface.
AViewInfo
provides ViewInfo information (a TdxAlertWindowMessageTextViewInfo class instance) used to paint the alert window’s message text. Refer to the TdxAlertWindowHitTest.HitMessageText property description to learn about the main TdxAlertWindowMessageTextViewInfo
properties accessible through the AViewInfo
parameter that you can use for custom painting.
ADone
specifies whether default painting is required. Set ADone
to True
, to prevent default code execution.
Handle the OnCustomDrawMessageText
event in combination with the OnMeasureMessageText to provide sufficient space for your custom painted message text.