Back to Devexpress

TdxTokenEditCustomDrawTokenEvent Type

vcl-dxtokenedit-ecb85e41.md

latest1.5 KB
Original Source

TdxTokenEditCustomDrawTokenEvent Type

The token editor custom draw event type.

Declaration

delphi
TdxTokenEditCustomDrawTokenEvent = procedure(Sender: TObject; ACanvas: TcxCanvas; AViewInfo: TdxTokenEditCustomTokenViewInfo; var AHandled: Boolean) of object;

Parameters

NameType
SenderTObject
ACanvasTcxCanvas
AViewInfoTdxTokenEditCustomTokenViewInfo
AHandledBoolean

Remarks

Use the Sender parameter to access the token editor that raised a TdxTokenEditCustomDrawTokenEvent event. To access the editor’s type-specific members, cast the parameter value to its actual type (TdxTokenEdit or TdxDBTokenEdit).

The ACanvas and AViewInfo parameters allow you to access the drawing surface and ViewInfo information of the token box that is about to be painted.

You can set the AHandled parameter to True to disable the default draw routines for the token box.

The token editor’s Properties.OnCustomDrawToken event references the TdxTokenEditCustomDrawTokenEdit procedural type.

See Also

dxTokenEdit Unit