Opened 10 years ago
Last modified 9 years ago
#2949 closed Bug
ControlTreeView — at Version 1
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.12.0 | Severity: | None |
Keywords: | ControlTreeView select | Cc: |
Description (last modified by Jpm)
Select Item selects the wrong item on a tree 7 levels deep
ControlTreeView ( $hWnd, '', $_LAMTreeControl, "expand","#0") ControlTreeView ( $hWnd, '', $_LAMTreeControl, "expand","#0|#0") ControlTreeView ( $hWnd, '', $_LAMTreeControl, "expand","#0|#0|#2") ControlTreeView ( $hWnd, '', $_LAMTreeControl, "expand","#0|#0|#2|#0") ControlTreeView ( $hWnd, '', $_LAMTreeControl, "expand","#0|#0|#2|#0|#4") ControlTreeView ( $hWnd, '', $_LAMTreeControl, "expand","#0|#0|#2|#0|#4|#0") ConsoleWrite("select #0|#0|#2|#0|#4|#0|#0" & @CRLF) ControlTreeView ( $hWnd, '', $_LAMTreeControl, "select","#0|#0|#2|#0|#4|#0|#0") $ret=ControlTreeView ( $hWnd, '', $_LAMTreeControl, "GetSelected",1) ConsoleWrite("$ret " & $ret & @CRLF) ConsoleWrite("select #0|#0|#2|#0|#4|#0|#1" & @CRLF) ControlTreeView ( $hWnd, '', $_LAMTreeControl, "select","#0|#0|#2|#0|#4|#0|#1") $ret=ControlTreeView ( $hWnd, '', $_LAMTreeControl, "GetSelected",1) ConsoleWrite("$ret " & $ret & @CRLF) ConsoleWrite("select #0|#0|#2|#0|#4|#0|#2" & @CRLF) ControlTreeView ( $hWnd, '', $_LAMTreeControl, "select","#0|#0|#2|#0|#4|#0|#2") $ret=ControlTreeView ( $hWnd, '', $_LAMTreeControl, "GetSelected",1) ConsoleWrite("$ret " & $ret & @CRLF) ConsoleWrite("select #0|#0|#2|#0|#4|#0|#3" & @CRLF) ControlTreeView ( $hWnd, '', $_LAMTreeControl, "select","#0|#0|#2|#0|#4|#0|#3") $ret=ControlTreeView ( $hWnd, '', $_LAMTreeControl, "GetSelected",1) ConsoleWrite("$ret " & $ret & @CRLF) ConsoleWrite("select #0|#0|#2|#0|#4|#0|#4" & @CRLF) ControlTreeView ( $hWnd, '', $_LAMTreeControl, "select","#0|#0|#2|#0|#4|#0|#4") $ret=ControlTreeView ( $hWnd, '', $_LAMTreeControl, "GetSelected",1) ConsoleWrite("$ret " & $ret & @CRLF) ConsoleWrite("select #0|#0|#2|#0|#4|#0|#5" & @CRLF) ControlTreeView ( $hWnd, '', $_LAMTreeControl, "select","#0|#0|#2|#0|#4|#0|#5") $ret=ControlTreeView ( $hWnd, '', $_LAMTreeControl, "GetSelected",1) ConsoleWrite("$ret " & $ret & @CRLF) ConsoleWrite("select #0|#0|#2|#0|#4|#0|#6" & @CRLF) ControlTreeView ( $hWnd, '', $_LAMTreeControl, "select","#0|#0|#2|#0|#4|#0|#6") $ret=ControlTreeView ( $hWnd, '', $_LAMTreeControl, "GetSelected",1) ConsoleWrite("$ret " & $ret & @CRLF) ConsoleWrite("select #0|#0|#2|#0|#4|#0|#7" & @CRLF) ControlTreeView ( $hWnd, '', $_LAMTreeControl, "select","#0|#0|#2|#0|#4|#0|#7") $ret=ControlTreeView ( $hWnd, '', $_LAMTreeControl, "GetSelected",1) ConsoleWrite("$ret " & $ret & @CRLF)
Output
select #0|#0|#2|#0|#4|#0|#0
$ret #0|#0|#2|#0|#4|#0|#0
select #0|#0|#2|#0|#4|#0|#1
$ret #0|#0|#2|#0|#4|#0|#0
select #0|#0|#2|#0|#4|#0|#2
$ret #0|#0|#2|#0|#4|#0|#2
select #0|#0|#2|#0|#4|#0|#3
$ret #0|#0|#2|#0|#4|#0|#3
select #0|#0|#2|#0|#4|#0|#4
$ret #0|#0|#2|#0|#4|#0|#4
select #0|#0|#2|#0|#4|#0|#5
$ret #0|#0|#2|#0|#4|#0|#1
select #0|#0|#2|#0|#4|#0|#6
$ret #0|#0|#2|#0|#4|#0|#3
select #0|#0|#2|#0|#4|#0|#7
$ret #0|#0|#2|#0|#4|#0|#5
ret should equal select
Note: See
TracTickets for help on using
tickets.
Your code is incomplete to be executed.
Can you add how $wnd and $_LAMTreeControl are set?
Thanks