[MonoDevelop] DrawingArea does not trigger mouse events.

Michael Hutchinson m.j.hutchinson at gmail.com
Wed Jun 19 16:42:44 UTC 2013


You need to register to receive those events, see
http://stackoverflow.com/questions/650252/gtk-mouse-event-in-drawing-area

On 9 June 2013 16:10, longshot <bob at flapstar.com> wrote:
> I am running MonoDevelop in Ubuntu with KDE.
> I went from Windows/Visual studio to Linux/MonoDevelop and am converting my
> project.
>
> I have problems getting mouse working on my DrawingArea.
> I created it in the IDE and i added events in the signals tab of my
> DrawingArea just like i did the ExposeEvent.
> The ExposeEvent does work, the mouse events don't.
>
> Is this some sort of bug?
> Is there workaround?
>
> These are the events, all are in the signals tab of my DrawingArea, none
> ever get triggered.
>
>         protected void OnMainChartDragMotion (object o, Gtk.DragMotionArgs args)
>         {
>                 Console.WriteLine("OnMainChartDragMotion");
>         }
>
>         protected void OnMainChartButtonPressEvent (object o,
> Gtk.ButtonPressEventArgs args)
>         {
>                 Console.WriteLine("OnMainChartButtonPressEvent");
>         }
>
>         protected void OnMainChartMotionNotifyEvent (object o,
> Gtk.MotionNotifyEventArgs args)
>         {
>                 Console.WriteLine("OnMainChartMotionNotifyEvent");
>         }
>
>         protected void OnMainChartKeyPressEvent (object o, Gtk.KeyPressEventArgs
> args)
>         {
>                 Console.WriteLine("OnMainChartKeyPressEvent");
>         }
>
>         protected void OnMainChartDragDataReceived (object o,
> Gtk.DragDataReceivedArgs args)
>         {
>                 Console.WriteLine("OnMainChartDragDataReceived");
>         }
>
>         protected void OnMainChartButtonReleaseEvent (object o,
> Gtk.ButtonReleaseEventArgs args)
>         {
>                 Console.WriteLine("OnMainChartButtonReleaseEvent");
>         }
>
>         protected void OnIndicatorChartButtonPressEvent (object o,
> Gtk.ButtonPressEventArgs args)
>         {
>                 Console.WriteLine("OnIndicatorChartButtonPressEvent");
>         }
>
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/DrawingArea-does-not-trigger-mouse-events-tp4659888.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list