Vcl.CategoryButtons.TCategoryButtons.OnEditing
Delphi
property OnEditing: TCatButtonEditingEvent read FOnEditing write FOnEditing;
C++
__property TCatButtonEditingEvent OnEditing = {read=FOnEditing, write=FOnEditing};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.CategoryButtons.pas Vcl.CategoryButtons.hpp |
Vcl.CategoryButtons | TCategoryButtons |
Description
Represents an event triggered when a caption edit operation begins.
This event is triggered when a caption edit operation begins as result of a call to EditText or after the user pressed F2 to go into edit mode. Set the AllowEdit parameter to False to prevent the editing operation from starting.
Write an OnEditing event handler to determine whether the user is allowed to edit the caption of a specific base item in the TCategoryButtons class.
The parameters expected by OnEditing are listed in the following table:
Argument | Meaning |
---|---|
Sender |
Represents the TCategoryButtons control that the button belongs to. |
Item |
Represents the TBaseItem (button or category) whose caption was edited. |
AllowEdit |
Set to False to prevent the editing from starting. |
See Also
Code Examples