Hugo Benicio
2014-03-14 15:03:47 UTC
Hi guys!
wxWidgets 3.0.0 documentation about wxTreeCtrl::DeleteAllItems:
"Note that this may not generate EVT_TREE_DELETE_ITEM events under some
Windows versions although normally such event is generated for each removed
item"
The experience I had on my project and systems:
[wxMSW 2.8.12] DeleteAllItems always triggers EVT_TREE_DELETE_ITEM, on my
windows xp and windows 7. (considering that the treectrl has elements, of
course)
[wxMSW 3.0.0] DeleteAllItems doen't triggers EVT_TREE_DELETE_ITEM, on my
windows 7. (considering that the treectrl has elements, of course).
I had some troubles fixing a bug in my system because 2.8.12 *always
triggered the event* for me, and 3.0.0 *doesn't triggers it*. Even if both
of them are on the same windows version.
Something has changed on this control and method, of course, but nothing
has changed on the documentation of it.
So the question is... Is it still uncertain that DeleteAllItems triggers
EVT_TREE_DELETE_ITEM depending on windows versions? If so, why? It should
be important to be certain, because it would be nice that this method could
be portable between windows versions. (what happens on linux, mac
distributions?).
If DeleteAllItems now doesn't triggers it at all (since 3.0.0 or other
previous version at least) and the documentation is just not updated, it
would be nice that it could be updated.
Some words or ideas about that? Wouldn't it be nice to remove this
"uncertain" thing?
Thanks!
wxWidgets 3.0.0 documentation about wxTreeCtrl::DeleteAllItems:
"Note that this may not generate EVT_TREE_DELETE_ITEM events under some
Windows versions although normally such event is generated for each removed
item"
The experience I had on my project and systems:
[wxMSW 2.8.12] DeleteAllItems always triggers EVT_TREE_DELETE_ITEM, on my
windows xp and windows 7. (considering that the treectrl has elements, of
course)
[wxMSW 3.0.0] DeleteAllItems doen't triggers EVT_TREE_DELETE_ITEM, on my
windows 7. (considering that the treectrl has elements, of course).
I had some troubles fixing a bug in my system because 2.8.12 *always
triggered the event* for me, and 3.0.0 *doesn't triggers it*. Even if both
of them are on the same windows version.
Something has changed on this control and method, of course, but nothing
has changed on the documentation of it.
So the question is... Is it still uncertain that DeleteAllItems triggers
EVT_TREE_DELETE_ITEM depending on windows versions? If so, why? It should
be important to be certain, because it would be nice that this method could
be portable between windows versions. (what happens on linux, mac
distributions?).
If DeleteAllItems now doesn't triggers it at all (since 3.0.0 or other
previous version at least) and the documentation is just not updated, it
would be nice that it could be updated.
Some words or ideas about that? Wouldn't it be nice to remove this
"uncertain" thing?
Thanks!
--
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
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