mail-archives/gtk-sharp-list/2004-August/004760.html

81 строка
3.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Drawing Area and Mouse Button Signals
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:John%20Luke%20%3Cjohn.luke%40gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="004759.html">
<LINK REL="Next" HREF="004761.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Drawing Area and Mouse Button Signals
</H1>
<B>John Luke
</B>
<A HREF="mailto:John%20Luke%20%3Cjohn.luke%40gmail.com%3E"
TITLE="[Gtk-sharp-list] Drawing Area and Mouse Button Signals">John Luke &lt;john.luke@gmail.com&gt;
</A><BR>
<I>Tue, 24 Aug 2004 16:10:16 -0400</I>
<P><UL>
<LI> Previous message: <A HREF="004759.html">[Gtk-sharp-list] Drawing Area and Mouse Button Signals
</A></li>
<LI> Next message: <A HREF="004761.html">[Gtk-sharp-list] Drawing Area and Mouse Button Signals
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4760">[ date ]</a>
<a href="thread.html#4760">[ thread ]</a>
<a href="subject.html#4760">[ subject ]</a>
<a href="author.html#4760">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Tue, 24 Aug 2004 19:19:57 +0000, Brad Taylor &lt;<A HREF="mailto:brad@getcoded.net">brad@getcoded.net</A>&gt; wrote:
&gt;<i> Hi everyone,
</I>&gt;<i>
</I>&gt;<i> I'm working on a research project in C# at my university which requires
</I>&gt;<i> the use of the DrawingArea widget. So far, my use of it is very basic,
</I>&gt;<i> almost directly copying code from the Scribble example by Rachel
</I>&gt;<i> Hestilow but for some reason, I am totally unable to receive
</I>&gt;<i> button_press or motion_notify signals, however I receive expose_event
</I>&gt;<i> and configure_event signals perfectly fine. Has anyone ran into this
</I>&gt;<i> problem? I've attached my source just in case it might help.
</I>&gt;<i>
</I>&gt;<i> Thanks so much.
</I>&gt;<i>
</I>&gt;<i> -Brad
</I>&gt;<i>
</I>&gt;<i> P.S.: I'm running latest mono and gtk-sharp from Debian Unstable.
</I>&gt;<i>
</I>&gt;<i>
</I>
This sounds like one of those times you have to add events you want
your drawing area to receive, it doesn't get them all by default. The
only example I can think of right now is list.cs in the monodoc
sources.
AddEvents ((int) EventMask.ButtonPressMask | (int)
EventMask.ButtonReleaseMask | (int) EventMask.KeyPressMask | (int)
EventMask.PointerMotionMask);
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="004759.html">[Gtk-sharp-list] Drawing Area and Mouse Button Signals
</A></li>
<LI> Next message: <A HREF="004761.html">[Gtk-sharp-list] Drawing Area and Mouse Button Signals
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4760">[ date ]</a>
<a href="thread.html#4760">[ thread ]</a>
<a href="subject.html#4760">[ subject ]</a>
<a href="author.html#4760">[ author ]</a>
</LI>
</UL>
</body></html>