dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/Xsharp TopLevelWindow.cs,1.8,1.9


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/Xsharp TopLevelWindow.cs,1.8,1.9
Date: Mon, 23 Jun 2003 01:35:22 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/Xsharp
In directory subversions:/tmp/cvs-serv11338/Xsharp

Modified Files:
        TopLevelWindow.cs 
Log Message:


Detect when top-level forms are activated or deactivated and dispatch
the appropriate events.


Index: TopLevelWindow.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/TopLevelWindow.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** TopLevelWindow.cs   23 Jun 2003 01:04:21 -0000      1.8
--- TopLevelWindow.cs   23 Jun 2003 05:35:20 -0000      1.9
***************
*** 727,730 ****
--- 727,748 ----
  
        /// <summary>
+       /// <para>Method that is called when the window gains the primary focus,
+       /// just before the actual focus is passed to children.</para>
+       /// </summary>
+       protected virtual void OnPrimaryFocusIn()
+                       {
+                               // Nothing to do here.
+                       }
+ 
+       /// <summary>
+       /// <para>Method that is called when the window loses the primary focus,
+       /// just after the actual focus is removed from children.</para>
+       /// </summary>
+       protected virtual void OnPrimaryFocusOut()
+                       {
+                               // Nothing to do here.
+                       }
+ 
+       /// <summary>
        /// <para>Raise this widget to the top of its layer.</para>
        /// </summary>
***************
*** 780,783 ****
--- 798,802 ----
                                {
                                        hasPrimaryFocus = true;
+                                       OnPrimaryFocusIn();
                                        if(defaultFocus != null)
                                        {
***************
*** 863,866 ****
--- 882,886 ----
                                                                
focusWidget.DispatchFocusOut(null);
                                                        }
+                                                       OnPrimaryFocusOut();
                                                }
                                        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]