Page MenuHomeFeedback Tracker

[Bug] onTreeExpanded doesn't trigger when using double click to expand the tree
Feedback, NormalPublic

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Scripting
Steps To Reproduce
_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}];
  1. double click the item

Event Timeline

Leopard20 created this task.Nov 3 2020, 3:40 PM
Leopard20 renamed this task from [Bug] onTreeExpanded doesn't trigger when using doubleClick to expand to [Bug] onTreeExpanded doesn't trigger when using double click to expand the tree.
dedmen added a subscriber: dedmen.Dec 16 2020, 4:10 PM

Repro script would be helpful :)

dedmen claimed this task.Dec 16 2020, 4:13 PM
dedmen changed the task status from New to Assigned.
dedmen set Ref Ticket to AIII-53665.

repro script doesn't work because you only have single level of items.
_tree tvAdd [[0], "Item 2"];

works tho

dedmen changed the task status from Assigned to Feedback.Dec 17 2020, 1:11 PM
Leopard20 edited Steps To Reproduce. (Show Details)EditedDec 17 2020, 1:18 PM

repro script doesn't work because you only have single level of items.
_tree tvAdd [[0], "Item 2"];

works tho

sorry, that's what I meant to do! Fixed now.

Anyway, it doesn't work. The event handler does trigger when you click on the arrow, but not when you double click the item. (try double clicking "Item 1")

I'm testing this on v2.01.147002