Jump to content

TreeView items copy into another TreeView


Recommended Posts

I'd like to copy the items of a TreeView

(one dimensional tree) into another:

$itemcount = _GUICtrlTreeView_GetCount($tvOne)

MsgBox(0,"","$itemcount: " & $itemcount) ; displays $itemcount: 3

MsgBox(0,"","$tvOne items:" & @CRLF & _GUICtrlTreeView_GetTree($tvOne)) ; ..._GetTree returns nothing !?

_GUICtrlTreeView_DeleteAll($tvTwo)

_GUICtrlTreeView_BeginUpdate($tvTwo)

For $i = 1 to $itemcount

_GUICtrlTreeView_Add($tvTwo,0,_GUICtrlTreeView_GetText($tvOne,$i))

Next

_GUICtrlTreeView_EndUpdate($tvTwo)

But $tvTwo is still empty, although $itemcount = 3

(but _GUICtrlTreeView_GetTree($tvOne)returns nothing)

What's missing ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...