The EndLabelEdit event has different arguments for different objects:
Object |
See |
---|---|
ListView control |
|
TreeView control |
Occurs when the user finishes editing an item’s label.
Event ID |
Objects |
---|---|
pbm_lvnendlabeledit |
ListView |
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. |
Long. Return code choices (specify in a RETURN statement):
0 Allow the new text to become the item’s label.
1 Prevent the new text from becoming the item’s label.
The user triggers this event by pressing Enter or Tab after editing the text.
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)
Occurs when the user finishes editing an item’s label.
Event ID |
Objects |
---|---|
pbm_tvnendlabeledit |
TreeView |
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. |
Long. Return code choices (specify in a RETURN statement):
0 Allow the new text to become the item’s label
1 Prevent the new text from becoming the item’s label
The user triggers this event by pressing Enter or Tab after editing the text.
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)