Migrating from 2.4 to 2.5 I've hit a strange problem with a class
derived from wxTreeCtrl which dynamically populates itself as it's
expanded. It *looks* like what is happening is that during the
processing of the TREE_ITEM_EXPANDING event there's an implicit
Yield() (or something like it) happening and another event handler
gets called. In this case it's for a custom event, indirectly
triggered by the TREE_ITEM_EXPANDING handler, which in 2.4 could
safely assume that an event which affected the result of IsExpanded()
had been completely dealt with. This isn't the case now, and it makes
a mess of things. 2.4 behaviour can be restored by wrapping the code
which causes the custom event to be triggered in wxCallAfter.
traceback suggests to me that wxEndBusyCursor is involved, which
sounds vaguely familiar, but I can't find anything in the 2.4 to 2.5
migration guide.
ยทยทยท
______________________________________________
APR Smartlogik Ltd.
Simon Arrowsmith
Senior Software Engineer
Rustat House, Clifton Road, Cambridge CB1 7EJ
tel: +44 (0)1223 271 045
fax: +44 (0)1223 271 010
map: http://www.aprsmartlogik.com/contact/cambridgemap.php
mailto: simon.arrowsmith@aprsmartlogik.com
web: www.aprsmartlogik.com
*******************************************************
This e-mail may contain proprietary and confidential information and is
intended for the recipient(s) only. If an addressing or transmission error
has misdirected this e-mail, please notify the systems administrator by
forwarding this e-mail to mailto:postmaster@aprsmartlogik.com. If you
are not the intended recipient(s) - disclosure, distribution, copying or
printing of this e-mail is strictly prohibited.
********************************************************