[Gtk-sharp-list] Trouble with DrawingArea.MotionNotifyEvent.
Ofer Achler
oachler@ucsd.edu
Sun, 21 Mar 2004 08:33:47 -0800
This is a multi-part message in MIME format.
------=_NextPart_000_0074_01C40F1F.3B0431F0
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
You can get the same effect by attaching to the expose event of the =
parent
window.
=20
Good luck!
=20
_____ =20
From: gtk-sharp-list-admin@lists.ximian.com
[mailto:gtk-sharp-list-admin@lists.ximian.com] On Behalf Of Ivan =
Gu=BEvinec
Sent: Sunday, March 21, 2004 6:07 AM
To: gtk-sharp-list@lists.ximian.com
Subject: [Gtk-sharp-list] Trouble with DrawingArea.MotionNotifyEvent.
=20
Hi,
I'm having trouble with MotionNotifyEvent in my derived Window class. I
would like to create a DrawingArea widget, add it to self (this) and =
then
catch its MotionNotifyEvent(s). So far I only get exactly one
MotionNotifyEvent when (1) mouse Enters the window area or (2) when I =
press
mouse buttons and then move the mouse inside the DrawingArea. But when I
simply move the mouse inside the DrawingArea, no MotionNotifyEvents are
fired.
Perhaps I'm doing things the wrong way, so any hint/help would be =
greatly
appreciated.
I've made a simple test program to demonstrate this. Please find the
attached "CreatedWindow.cs", compile with "mcs -r gtk-sharp.dll -r
gdk-sharp.dll -r glib-sharp.dll CreatedWindow.cs"
thanks,
Ivan=20
------=_NextPart_000_0074_01C40F1F.3B0431F0
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-2">
<html>
<head>
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>You can get the same effect by =
attaching
to the expose event of the parent window.</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Good luck!</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>
<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>
</span></font></div>
<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
gtk-sharp-list-admin@lists.ximian.com
[mailto:gtk-sharp-list-admin@lists.ximian.com] <b><span =
style=3D'font-weight:
bold'>On Behalf Of </span></b>Ivan Gu=BEvinec<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Sunday, March 21, =
2004 6:07
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b>
gtk-sharp-list@lists.ximian.com<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Gtk-sharp-list] =
Trouble
with DrawingArea.MotionNotifyEvent.</span></font></p>
</div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Hi,<br>
<br>
I'm having trouble with MotionNotifyEvent in my derived Window class. I =
would
like to create a DrawingArea widget, add it to self (this) and then =
catch its
MotionNotifyEvent(s). So far I only get exactly one MotionNotifyEvent =
when (1)
mouse Enters the window area or (2) when I press mouse buttons and then =
move
the mouse inside the DrawingArea. But when I simply move the mouse =
inside the
DrawingArea, no MotionNotifyEvents are fired.<br>
<br>
Perhaps I'm doing things the wrong way, so any hint/help would be =
greatly
appreciated.<br>
<br>
I've made a simple test program to demonstrate this. Please find the =
attached
"CreatedWindow.cs", compile with "mcs -r gtk-sharp.dll -r
gdk-sharp.dll -r glib-sharp.dll CreatedWindow.cs"<br>
<br>
thanks,<br>
Ivan </span></font></p>
</div>
</body>
</html>
------=_NextPart_000_0074_01C40F1F.3B0431F0--