开发者

Bad Event Order?

I have wxTreeCrtl and wxPropertyGrid.

I handle wxEVT_PG_CHANGED for checking when user finishes modifying

and

wxEVT_COMMAND_TREE_SEL_CHANGED for checking when user changes selection in tree

No开发者_如何学Pythonw imagine this situation: I modify something in propertyGrid and finish modifying by clicking on some object in tree(different then currently selected). Is it correct behavior, that wxEVT_COMMAND_TREE_SEL_CHANGED is send before wxEVT_PG_CHANGED?


It is known bug. It can be solved by catching first event and manually resend it into message pump (wxPostMessage). It will guarantee message is at bottom of mess. pump and event order will be fixed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜