Modify

Opened 10 years ago

Closed 9 years ago

#2949 closed Bug (No Bug)

ControlTreeView

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

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by Jpm

  • Description modified (diff)

Your code is incomplete to be executed.

Can you add how $wnd and $_LAMTreeControl are set?

Thanks

comment:2 Changed 9 years ago by mLipok

  • Resolution set to No Bug
  • Status changed from new to closed

As the ticket submiter never answer to @Jpm question, there is no way to check it.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.