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

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

[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms Form.cs,1.4,1.5


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms Form.cs,1.4,1.5
Date: Thu, 12 Jun 2003 04:03:36 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms
In directory subversions:/tmp/cvs-serv2837/System.Windows.Forms

Modified Files:
        Form.cs 
Log Message:


Track the "OnTextChanged" event in "Form" to update the window title properly.


Index: Form.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Form.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Form.cs     12 Jun 2003 07:56:35 -0000      1.4
--- Form.cs     12 Jun 2003 08:03:33 -0000      1.5
***************
*** 518,521 ****
--- 518,531 ----
                        }
  
+       // Handle the text changed event from "Control".
+       protected override void OnTextChanged(EventArgs e)
+                       {
+                               if(toolkitWindow != null)
+                               {
+                                       toolkitWindow.SetTitle(Text);
+                               }
+                               base.OnTextChanged(e);
+                       }
+ 
        // Get the current state of a window decoration flag.
        private bool GetWindowFlag(ToolkitWindowFlags flag)





reply via email to

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