identify/track an item in a TreeCtrl
Pan Xingzhi
vengeance.storm at gmail.com
Mon Dec 3 02:59:41 PST 2007
Howdy list,
Is there a way to identify/track an item in a TreeCtrl? This action
typically takes place in an event handler where the exact "source" of the
event is needed.
I tried event.GetItem(), but the returned TreeItemId instance is not the
one returned by AppendItem. However their m_pItem property looks the same.
Can I use that?
I read the source code in the wxPython demo. It just retrieves the text
of the item using GetItemText(event.GetItem()). Though the TreeItemId
instance is changed, we can still get the same information (text, color...)
of the item. There must be some magic behind scene but I'm just confused.
Thanks in advance,
Harry Pan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200712=
03/2de4f4a1/attachment.htm
More information about the wxpython-users
mailing list