Skip to main content

TdxTokenEditProperties.OnTokenDelete Event

Enables you to respond to an attempt to remove a token box from the token editor.

Declaration

property OnTokenDelete: TdxTokenEditTokenCollectionChangingEvent read; write;

Remarks

This event is raised when an end-user attempts to delete a token (i.e., either clicks the Close glyph or presses the Backspace key when the non-empty token editor is focused). Pass False as the AAllow parameter to forbid removing this token from the editor.

The Sender parameter specifies the token editor that raised the event.

Use the AToken and ATokenText parameters to identify the token by its token object and text, respectively.

Note

All token boxes do not display Close glyphs if the CloseGlyphPosition property is set to teepNone. In this case, end-users can only use the Backspace key to delete tokens.

See Also