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

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

[Dotgnu-pnet-commits] pnetlib/System.Windows.Forms Form.cs, 1.23, 1.24


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/System.Windows.Forms Form.cs, 1.23, 1.24
Date: Tue, 02 Dec 2003 06:55:53 +0000

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

Modified Files:
        Form.cs 
Log Message:


Implement the window hints for dialog owners, modality, minimum
size, and maximum size.


Index: Form.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Form.cs,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** Form.cs     1 Dec 2003 00:23:28 -0000       1.23
--- Form.cs     2 Dec 2003 06:55:50 -0000       1.24
***************
*** 820,823 ****
--- 820,841 ----
                                try
                                {
+                                       // Create the control.  We must do this 
before
+                                       // we set the owner or make the form 
visible.
+                                       CreateControl();
+ 
+                                       // Set the dialog owner.
+                                       IToolkitTopLevelWindow toolkitWindow = 
ToolkitWindow;
+                                       if(toolkitWindow != null)
+                                       {
+                                               if(owner != null)
+                                               {
+                                                       
toolkitWindow.SetDialogOwner(owner.ToolkitWindow);
+                                               }
+                                               else
+                                               {
+                                                       
toolkitWindow.SetDialogOwner(null);
+                                               }
+                                       }
+ 
                                        // Make the form visible.
                                        Visible = true;





reply via email to

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