Sign in to follow this  
Followers 0
alanstone

TreeView items copy into another TreeView

1 post in this topic

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 ?

Share this post


Link to post
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
Sign in to follow this  
Followers 0