_disp = findDisplay 46 createDisplay "RscDisplayEmpty"; _tree = _disp ctrlCreate ["RscTree", -1]; _tree ctrlSetPosition [safeZoneX + 0.25 * safeZoneW, safeZoneY + 0.25 * safeZoneH, 0.5* safeZoneW, 0.5*safeZoneH]; _tree ctrlCommit 0; _tree tvAdd [[], "Item 1"]; _tree tvAdd [[0], "Item 2"]; _tree ctrlAddEventHandler ["TreeExpanded", {hint str _this}];
- double click the item