Not catching all mouse events with wxWidgets

懵懂的女人 提交于 2019-12-01 11:03:23

I figured it out: whenever you have one child of a wxFrame, wxWidgets automatically assumes you want it to cover the entire area of the wxFrame.

Because of this, there is no portion of the frame visible - hence none of the events make it to your handler.

As for solutions, you could always have the wxPanel handle the events.

Edit: Since you mentioned wxSmith, you could go to the events tab of the management pane {} and put the event handling code in the mouse events there instead of the wxFrame.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!