ChefZ -- 磨劍錄 (A Coder's Log)

慣看秋月春風 一壺濁酒喜相逢 古今多少事 皆賦談笑中
posts - 42, comments - 3, trackbacks - 0, articles - 6

wxWidgets 101 - 11 wxEvent Skip()

Posted on 2008-11-15 06:16 chefZ 阅读(271) 评论(0)  编辑 收藏 引用

This method can be used inside an event handler to control whether further event handlers bound to this event will be called after the current one returns. Without skip() (or equivalently if skip(false) is used), the event will not be processed any more. If skip(true) is called, the event processing system continues searching for a further handler function for this event, even though it has been processed already in the current handler.

In general, it is recommended to skip all non-command events to allow the default handling to take place. The command events are, however, normally not skipped as usually a single command such as a button click or menu item selection must only be processed by one handler.


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理