Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Name Type
Sender TObject
ACanvas TcxCanvas
AViewInfo TdxTokenEditCustomTokenViewInfo
AHandled Boolean

#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