Discussion:
wxTreeCtrl - invariance of TreeItemId s
a***@arlross.demon.co.uk
2014-04-10 14:58:25 UTC
Permalink
If one sets up a tree, setting up its root then appending items, is it true that subsequent editing of an item label will not affect the Id of that item, or any others in the tree?

Similarly, if one changes a tree by inserting and/or deleting items, are the ids associated with the (non-deleted) individual items before any such change the same after the change? Does setting Item State or Data, or text font etc, of any item change Ids.

I would expect the Ids to be invariant in all these cases. Is this true?

TIA

Alec Ross

A Ross Computing Services (Arcs) Ltd.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-04-10 19:58:51 UTC
Permalink
On Thu, 10 Apr 2014 14:58:25 +0000 ***@arlross.demon.co.uk wrote:

a> If one sets up a tree, setting up its root then appending items, is it
a> true that subsequent editing of an item label will not affect the Id of
a> that item, or any others in the tree?
a>
a> Similarly, if one changes a tree by inserting and/or deleting items, are
a> the ids associated with the (non-deleted) individual items before any
a> such change the same after the change? Does setting Item State or Data,
a> or text font etc, of any item change Ids.
a>
a> I would expect the Ids to be invariant in all these cases. Is this true?

Yes. IDs of the items actually never change at all, to the best of my
knowledge, they can only be invalidated by deleting the item.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...