The EndLabelEdit event has different arguments for different objects:
Description
Occurs when the user finishes editing an item's label.
Event ID
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. |
Return Values
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.
Usage
The user triggers this event by pressing Enter or Tab after editing the text.
Examples
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
Description
Occurs when the user finishes editing an item's label.
Event ID
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. |
Return Values
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
Usage
The user triggers this event by pressing Enter or Tab after editing the text.
Examples
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