wxMouseEvent and wxEVT_MOUSEWHEEL
Luís Brás
lfdbras at gmail.com
Wed Mar 12 18:48:09 PDT 2008
No, I can capture the left and right button of the mouse, but not the mouse
whell:
BEGIN_EVENT_TABLE(C3DVisualization, wxGLCanvas)
EVT_MOUSE_EVENTS(C3DVisualization::OnMouse)
EVT_MOUSEWHEEL(C3DVisualization::OnMouseWhell)
END_EVENT_TABLE()
void C3DVisualization::OnMouseWhell(wxMouseEvent& event)
{
wxMessageBox("OnMouseWheel!!!!");
event.Skip();
}
Nothing happens.
And i know that the windows got focus.
On Wed, Mar 12, 2008 at 8:10 PM, Patrick Steele <steele.patrick at gmail.com>
wrote:
> That sounds as if your wxGLCanvas doesn't currently have focus.
> Perhaps you are capturing the mouse elsewhere?
> Patrick
>
>
>
> On Wed, Mar 12, 2008 at 5:44 PM, Lu=EDs Br=E1s <lfdbras at gmail.com> wrote:
> > Hello,
> >
> > I'm trying to develop a application using wxAuiDockArt with OPENGL.
> > A derived ListControl and a wxGlCanvas objects are added to the
> wxAuiDockArt
> > manager.
> >
> > I cannot capture a wxEVT_MOUSEWHEEL event in the wxGlCanvas derived
> object.
> > When I move the wheel mouse the derived ListControl scrolls.
> >
> > Anyone can help me?
> >
> > PS: Sorry for my bad English....
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080313/d47=
4598e/attachment.htm
More information about the wx-users
mailing list