wxEVT_LEFT_UP mouseEvent not triggering in the webview sample
Closed this issue · 0 comments
raphael10-collab commented
Hi!
I've added in the WebFrame::WebFrame constructor in the webview sample:
https://github.com/wxWidgets/wxWidgets/blob/WX_3_0_BRANCH/samples/webview/webview.cpp
the following event binding:
panel->Bind(wxEVT_LEFT_UP, [&](wxMouseEvent& event) {
wxMessageBox(wxString::Format("The frame is clicked at {x=%d, y=%d}", event.GetPosition().x, event.GetPosition().y), "FrameClick", wxID_ANY) ;
std::cout << event.GetPosition().x << " , " << event.GetPosition().y << std::endl;
mouse_position = event.GetPosition();
});
But I do not get any output
What am I doing wrong? How to make it work?
PS: I know my question is not stictly related to this github's repo, but, may be, you can give me some helpful hints