Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

CEKeyPress Event, SftTree Object

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.

Syntax

VB.NETPrivate Sub object_CEKeyPress(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.CEKeyPress
VBPrivate Sub object_CEKeyPress(Key As Long, ByVal Shift As Integer, ByVal ItemIndex As Long, ByVal ColIndex As Integer, ByVal CurrString As String)
C#.NETvoid object_CEKeyPress(object sender, EventArgumentType e);
VC++void OnCEKeyPressobject(long* Key, short Shift, long ItemIndex, short ColIndex, _bstr_t CurrString);
CHRESULT OnCEKeyPressobject(long* Key, short Shift, long ItemIndex, short ColIndex, BSTR CurrString);

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.

ShiftValueDescription
constSftTreeShiftMask1The SHIFT key was pressed.
constSftTreeCtrlMask2The CONTROL key was pressed.
constSftTreeAltMask4The 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 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


Last Updated 08/13/2020 - (email)
© 2022 Softel vdm, Inc.