Action
Presses the mouse on an item in the treeview.
Availability
This functionality is supported only if you are using the Classic Agent.
Syntax
treeview.PressItem (Item [, iButton,
iXpos, iYpos])
Variable
|
Description
|
Item
|
The item to press.
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
PressItem scrolls the specified item into view and presses the mouse on the item. The optional arguments allow you to specify the button to press and the offset within the item of the location of the press.
PressItem is primarily useful for scripting drag and drop operations.
Example
MyDialog.MyTreeView.PressItem ("/root/child/grandchild")
MyDialog.MyListView.ReleaseItem ("listview item to drop treeview item on")