Another question about tree items

Is it alway ok to hang on to a reference to a wxTreeItemId while the
tree is being changed? As long as that item is not deleted, will the
reference stay valid? Will IsOk always return false after the item has
been deleted (either directly or by deleting an ancestor item)?

Al

achrist@easystreet.com wrote:

Is it alway ok to hang on to a reference to a wxTreeItemId while the
tree is being changed? As long as that item is not deleted, will the
reference stay valid?

Yes, I think so. wxTreeItemId is simply an opaque wrapper around a platform specific handle.

Will IsOk always return false after the item has
been deleted (either directly or by deleting an ancestor item)?

No, there is nothing that will go out and modify any existing wxTreeItemId instances...

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!