[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Implements the OnKeyDown event handler for the editor on the tree view control.
Source position: comctrls.pp line 3558
protected procedure TCustomTreeView.EditorKeyDown( |
Sender: TObject; |
var Key: Word; |
Shift: TShiftState |
); virtual; |
Sender |
|
Object for the event notification. |
Key |
|
Virtual key code for the notification. |
Shift |
|
Shift, Ctrl, or Alt modifier for the key down event. |
EditorKeyDown ensures that key down events and focus change are handled for the tree node editor on the control.
Key and Shift contain the virtual key code and shift modifier(s) for the key down event. Virtual key codes handled in the method include:
Shift must be an empty set ([]) to handle these virtual key codes in the method.
EditorKeyDown calls EndEditing to update state flags, and to signal assigned OnEdited and OnEditingEnd events handlers when the Text for the tree node is changed. It calls SetFocus to restore focus to the tree view control if the tree node editor was assigned and had focus on entry to the method.
The value in Key is set to 0 to if the virtual key code is handled in the method.
EditorKeyDown is used as the OnKeyDown event handler for the internal TEdit control created in the BeginEditing method.
|
Contains the tree node being edited in the control. |
|
|
Updates the specified tree node and hides editor. |
|
|
Event handler signalled when the tree view control has been edited. |
|
|
Event handler signalled when EndEditing is called for the control. |
|
|
Prepares the control to edit the text for the specified tree node. |
|
|
Text displayed for the tree node. |
|
|
Event handler signalled when editing is completed for the control. |
|
|
Ensures that the control or window handle has focus. |
Version 4.0 | Generated 2025-05-03 | Home |