|
|
|
SftTree.CEKeyPress Event |
A key has been pressed (cell editing).
Deprecated - Provided for compatibility with earlier versions only - See Cell
Editing
This event continues to be used with Internet Explorer as it does not support
the new cell editing mechanisms introduced with SftTree/OCX 7.0.
Syntax
VB.NET |
Private Sub object_CEKeyPress(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.CEKeyPress |
||
VB |
Private Sub object_CEKeyPress(Key As Long, ByVal Shift As Integer, ByVal ItemIndex As Long, ByVal ColIndex As Integer, ByVal CurrString As String) |
||
C#.NET |
void object_CEKeyPress(object sender, EventArgumentType e); |
||
VC++ |
void OnCEKeyPressobject(long* Key, short Shift, long ItemIndex, short ColIndex, _bstr_t CurrString); |
||
C |
HRESULT OnCEKeyPressobject(long* Key, short Shift, long ItemIndex, short ColIndex, BSTR CurrString); |
||
Delphi |
procedure objectCEKeyPress(Sender: TObject; var Key : Integer; Shift : Smallint; ItemIndex : Integer; ColIndex : Smallint; CurrString : WideString); |
object
A SftTree object.
Key
The key code. This value can be set to 0 to suppress the key from being processed by SftTree/OCX.
Shift
The state of the SHIFT, CONTROL and ALT keys during the event (see SftTreeKeyConstants). A bit is set if the key is down. The Shift argument is a bit field with bits corresponding to the SHIFT, CONTROL and ALT keys. The Shift variable indicates the state of these keys. Some, all, or none of the bits can be set, indicating which of the keys are pressed.
Shift |
Value |
Description |
1 |
The SHIFT key was pressed. |
|
2 |
The CONTROL key was pressed. |
|
4 |
The ALT key was pressed. |
ItemIndex
The zero-based index of the cell being edited.
ColIndex
The column number of the cell being edited.
CurrString
The text currently displayed by the edit control or combo box used for cell editing.
Comments
Deprecated - Provided for compatibility with earlier versions only - See Cell
Editing
This event continues to be used with Internet Explorer as it does not support
the new cell editing mechanisms introduced with SftTree/OCX 7.0.
The CEKeyPress event occurs when a key has been pressed (cell editing).
This event is only available if the CellEventHandling property is set to True.
The tree control properties cannot be modified during this event. If the cell contents are modified, cell editing is terminated. Use the AfterEdit or PostEdit events to modify the cell contents.
The Key typed by the user can be suppressed by setting Key to 0. It can be modified by assigning a new value to the variable.
See Also SftTree Object | Object Hierarchy