EndLabelEdit

The EndLabelEdit event has different arguments for different objects:

Object

See

ListView control

Syntax 1 For ListView controls

TreeView control

Syntax 2 For TreeView controls


Syntax 1 For ListView controls

Description

Occurs when the user finishes editing an item’s label.

Event ID

Event ID

Objects

pbm_lvnendlabeledit

ListView

Arguments

Argument

Description

index

Integer. The index of the ListView item for which you have edited the label.

newlabel

The string that represents the new label for the ListView item.

Returns

Long. Return code choices (specify in a RETURN statement):

Usage

The user triggers this event by pressing Enter or Tab after editing the text.

Examples

Example 1

This example displays the old label and the new label in a SingleLineEdit:

ListViewItem lvi

sle_info.text = "Finished editing " &

   + String(lvi.label) &

   +". Item changed to "+ String(newlabel)

See also


Syntax 2 For TreeView controls

Description

Occurs when the user finishes editing an item’s label.

Event ID

Event ID

Objects

pbm_tvnendlabeledit

TreeView

Arguments

Argument

Description

handle

Integer. The index of the TreeView item for which you have edited the label.

newtext

The string that represents the new label for the TreeView item.

Returns

Long. Return code choices (specify in a RETURN statement):

Usage

The user triggers this event by pressing Enter or Tab after editing the text.

Examples

Example 2

This example displays the old label and the new label in a SingleLineEdit:

TreeViewItem tvi


This.GetItem(handle, tvi)

sle_info.Text = "Finished editing " &

   + String(tvi.Label) &

   + ". Item changed to " &

   + String(newtext)

See also