SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
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 5.0.
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); |
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 |
---|---|---|
constSftTreeShiftMask | 1 | The SHIFT key was pressed. |
constSftTreeCtrlMask | 2 | The CONTROL key was pressed. |
constSftTreeAltMask | 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.
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 5.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