ClickNode Method (JTree)

Class

JTree class

Action

Clicks on a tree node specified by the item path.

Syntax

tree.ClickNode(item, [button, position, modifiers])
Variable Description
item The item path to click on. LISTITEM.
button Optional.The button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3). INTEGER.
position Optional.The position to click. If the position is omitted, the click is done in the center of the tree node. POINT.
modifiers Optional.The modifier keys (Alt, Shift and Ctrl) to press while clicking the tree node. Default: Don't use modifier keys. MODIFIERKEYSTATE.

Examples

Tree.ClickNode("/level_1-1/level_2-1/level_3-4", 1, {10, 10}, MOD_CTRL)
Tree.ClickNode("/level_1-1/level_2-1/level_3-4")