JVCL Help:TJvInspectorCustomCompoundItem.EditKeyDown@TObject@Word@TShiftState

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

OnKeyDown handler for the edit control.


Pascal

 procedureEditKeyDown(Sender: TObject; varKey: Word; Shift: TShiftState); override;


Parameters

Parameters Description
Sender: TObject Originator of the call. This is either the edit control or the inspector.
var Key: Word The key on the keyboard. For non-alphanumeric keys, you must use WinAPI virtual key codes to determine the key pressed. For more information, search for virtual key codes in the Win32 Developer's Reference (WIN32.HLP).
Shift: TShiftState Indicates whether the Shift, Alt, or Ctrl keys are combined with the keystroke.


Description

EditKeyDown is the OnKeyDown handler for the edit control. On entry to the method the Sender property is checked. If it is not set to the inspector, the method was indeed called from the edit control. Execution is transferred to the inspector. If the call originated from the inspector (Sender is set to Inspector), the item editor keys are processed. This means the keys for Apply, Undo, select prior value, select next value and to invoke the Edit method are checked. Descendants that override this should call inherited and only process special keys if Sender is set to Inspector (so that the inspector had a change to process its own keys first).


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page