ReleaseItem Method (TreeView)

Class

TreeView.

Action

Releases the mouse over an item in the treeview.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

treeview.ReleaseItem (Item [, iButton, iXpos, iYpos])
Variable Description
Item The item to select. STRING or INTEGER.
iButton Optional: The mouse button to press: Windows: 1 for left (default), 2 for right, and 3 for center. INTEGER.
iXpos Optional: The horizontal coordinate. INTEGER.
iYpos Optional: The vertical coordinate. INTEGER.

Notes

ReleaseItem scrolls the specified item into view and releases the mouse over the item. The optional arguments allow you to specify the button to release and the offset within the item of the location of the release.

For information on specifying Item, see the TreeView class. ReleaseItem is primarily useful for scripting a drag and drop operations.

Example

MyDialog.MyListView.PressItem("listview item to drop on treeview item")
MyDialog.MyTreeView.ReleaseItem("/root/child/grandchild")