wxTreeItemId

BlitzMax Forums/Brucey's Modules/wxTreeItemId

Nigel Brown(Posted 2009) [#1]
After connecting an event handler for the wxTreeCtrl. I use event. GetItem() inside the handler to return a wxTreeItemId. I then try to compare this with another copy I stored when I created the branch using wxTreeCtrl.AppendItem() and they differer in value?

I then found out that calling event.GetItemId() returns a differing value each time you call it?


Brucey(Posted 2009) [#2]
Can't you use Equals() ?

e.g.
If treeItem1.Equals(treeItem2) Then
    Print "The tree items are the same"
Else
    Print "The tree items are different"
End If



Nigel Brown(Posted 2009) [#3]
Brucey, Thank you.