Vcl.CategoryButtons.TCategoryButtons.OnCancelEdit

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnCancelEdit: TCatButtonCancelEditEvent read FOnCancelEdit write FOnCancelEdit;

C++

__property TCatButtonCancelEditEvent OnCancelEdit = {read=FOnCancelEdit, write=FOnCancelEdit};

Properties

Type Visibility Source Unit Parent
event published
Vcl.CategoryButtons.pas
Vcl.CategoryButtons.hpp
Vcl.CategoryButtons TCategoryButtons

Description

This event is triggered when a caption editing operation is canceled.

This event is triggered when a caption editing operation is canceled as result of a call to EndEdit (True) or if the user presses the Escape key while in edit mode.

The parameters expected by OnCancelEdit are listed in the following table:



Argument Meaning

Sender

Represents the TCategoryButtons container object.

Button

Represents the button or category whose caption editing was canceled.

S

Indicates the value of the new caption that will be used. Code may be added to the event handler to replace or alter the new caption by assigning a new value to S. Assigning a blank string to S leaves the existing caption unchanged.



See Also

Code Examples