SftTree/OCX 7.0

SftTree.CEKeyUp Event

Softel vdm, Inc.

A key has been released (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_CEKeyUp(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.CEKeyUp

VB

Private Sub object_CEKeyUp(Key As Long, ByVal Shift As Integer, ByVal ItemIndex As Long, ByVal ColIndex As Integer, ByVal CurrString As String)

C#.NET

void object_CEKeyUp(object sender, EventArgumentType e);

VC++

void OnCEKeyUpobject(long* Key, short Shift, long ItemIndex, short ColIndex, _bstr_t CurrString);

C

HRESULT OnCEKeyUpobject(long* Key, short Shift, long ItemIndex, short ColIndex, BSTR CurrString);

Delphi

procedure objectCEKeyUp(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.  The key codes are defined by the development tool used.  For Visual Basic, key code examples are vbKeyF1 (the F1 key), for Visual C++ VK_UP (the up arrow key).

Shift

The state of the SHIFT, CONTROL and ALT keys during the event. 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.

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 CEKeyUp event occurs when a key has been released (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


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com