wxStaticText: Mouse click event

Jason Dolan jayson.dolan at gmail.com
Tue Dec 19 09:12:06 PST 2006


We're using 2.7.0 at the moment.  We'll be updating to 2.8 later on
this month.  Did it not work under wxGTK as well?  Under linux I'm not
getting the events either.

I changed it so that my frame is grabbing all mouse click events (not
just the ones for my statictext), and still the callback seems to never
get called.

void MyFrame::SetUpEvents()
{
Connect(wxEVT_LEFT_UP,
(wxObjectEventFunction)(wxEventFunction)(wxMouseEventFunction)
&MyFrame::MouseEvent);
}

void MyFrame::MouseEvent(wxMouseEvent& event)
{
cerr << "Caught a mouse event!!!" << endl;
}


Vadim Zeitlin wrote:
> On 19 Dec 2006 08:43:38 -0800 Jason Dolan <jayson.dolan at gmail.com> wrote:
>
> JD> Is there a specific reason why the wxStaticText control does not catch
> JD> Mouse events?
>
>  It used to not get them under Windows but it should work in 2.8.0. As you
> don't mention your platform/wx version I don't know if you found a bug or
> just use an old version or use a new one on a platform I know nothing
> about.
>
>  Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
>                http://www.tt-solutions.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org







More information about the wx-users mailing list