wxEVT_LEFT_UP mouseEvent not triggering in the webview sample
Raphael Stonehorse <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CAKSMiAODA1R7TEbgymFiYsWdpTM_wxEFSyHxS8=tYc-geevaRg@mail.gmail.com> |
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?
--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CAKSMiAODA1R7TEbgymFiYsWdpTM_wxEFSyHxS8%3DtYc-geevaRg%40mail.gmail.com.