SftTree/OCX 7.0

SftTree.CaretChange Event

Softel vdm, Inc.

The caret location changes.

Syntax       

VB.NET

Private Sub object_CaretChange(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.CaretChange

VB

Private Sub object_CaretChange(ByVal ItemIndex As Long)

C#.NET

void object_CaretChange(object sender, EventArgumentType e);

VC++

void OnCaretChangeobject(long ItemIndex);

C

HRESULT OnCaretChangeobject(long ItemIndex);

Delphi

procedure objectCaretChange(Sender: TObject; ItemIndex : Integer);

object

A SftTree object.

ItemIndex

The new zero-based index of the current item.

Comments

The CaretChange event occurs when the caret location changes.

The current item is the item that has the caret rectangle, which is a rectangle outlining the border of the current item (see Items.Current).  When using the up and down arrow keys, the user changes the current item (or caret location, also see Items.NoSelection).  The current item is not necessarily the same as the selected item.  The Item.Selected property can be used to change the selected item.

ItemIndex may be 0, even if the tree control is empty.

The current item can also be affected by the Items.DropHighlightStyle property.

See Also  SftTree Object | Object Hierarchy


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