[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingTopLeve
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingTopLevelWindow.cs,1.7,1.8 |
Date: |
Mon, 23 Jun 2003 01:35:22 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp
In directory subversions:/tmp/cvs-serv11338/System.Drawing.Xsharp
Modified Files:
DrawingTopLevelWindow.cs
Log Message:
Detect when top-level forms are activated or deactivated and dispatch
the appropriate events.
Index: DrawingTopLevelWindow.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingTopLevelWindow.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** DrawingTopLevelWindow.cs 23 Jun 2003 01:04:21 -0000 1.7
--- DrawingTopLevelWindow.cs 23 Jun 2003 05:35:20 -0000 1.8
***************
*** 412,415 ****
--- 412,433 ----
}
+ // Override the primary focus enter event from Xsharp.
+ protected override void OnPrimaryFocusIn()
+ {
+ if(sink != null)
+ {
+ sink.ToolkitPrimaryFocusEnter();
+ }
+ }
+
+ // Override the primary focus leave event from Xsharp.
+ protected override void OnPrimaryFocusOut()
+ {
+ if(sink != null)
+ {
+ sink.ToolkitPrimaryFocusLeave();
+ }
+ }
+
// Handle a paint event from Xsharp.
protected override void OnPaint(Xsharp.Graphics graphics)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingTopLevelWindow.cs,1.7,1.8,
Rhys Weatherley <address@hidden> <=