зеркало из https://github.com/mono/mail-archives.git
81 строка
3.1 KiB
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 <john.luke@gmail.com>
|
|
</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 <<A HREF="mailto:brad@getcoded.net">brad@getcoded.net</A>> wrote:
|
|
><i> Hi everyone,
|
|
</I>><i>
|
|
</I>><i> I'm working on a research project in C# at my university which requires
|
|
</I>><i> the use of the DrawingArea widget. So far, my use of it is very basic,
|
|
</I>><i> almost directly copying code from the Scribble example by Rachel
|
|
</I>><i> Hestilow but for some reason, I am totally unable to receive
|
|
</I>><i> button_press or motion_notify signals, however I receive expose_event
|
|
</I>><i> and configure_event signals perfectly fine. Has anyone ran into this
|
|
</I>><i> problem? I've attached my source just in case it might help.
|
|
</I>><i>
|
|
</I>><i> Thanks so much.
|
|
</I>><i>
|
|
</I>><i> -Brad
|
|
</I>><i>
|
|
</I>><i> P.S.: I'm running latest mono and gtk-sharp from Debian Unstable.
|
|
</I>><i>
|
|
</I>><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>
|