Skip to main content

TdxTokenEditCustomDrawTokenEvent Type

The token editor custom draw event type.

Declaration

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