Author: everaldo
Date: 2007-02-23 03:03:00 -0500 (Fri, 23 Feb 2007)
New Revision: 73356

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FolderBrowserDialog.cs
Log:
2007-02-23  Everaldo Canuto  <[EMAIL PROTECTED]>

        * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
        window size, it fix problem when you run under win32 that theres
        Size diferent than ClientSize. Also fix controls size and positions
        to mimic Win32. Fixes #80837.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-02-23 07:01:06 UTC (rev 73355)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-02-23 08:03:00 UTC (rev 73356)
@@ -1,3 +1,10 @@
+2007-02-23  Everaldo Canuto  <[EMAIL PROTECTED]>
+
+       * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
+       window size, it fix problem when you run under win32 that theres
+       Size diferent than ClientSize. Also fix controls size and positions
+       to mimic Win32. Fixes #80837.
+
 2007-02-22  Everaldo Canuto  <[EMAIL PROTECTED]>
 
        * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FolderBrowserDialog.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FolderBrowserDialog.cs
   2007-02-23 07:01:06 UTC (rev 73355)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FolderBrowserDialog.cs
   2007-02-23 08:03:00 UTC (rev 73356)
@@ -90,8 +90,8 @@
                        form.CancelButton = cancelButton;
                        
                        form.SuspendLayout ();
-                       form.Size =  new Size (322, 288);
-                       form.MinimumSize = new Size (322, 288);
+                       form.ClientSize = new Size (322, 324);
+                       form.MinimumSize = new Size (310, 254);
                        form.Text = "Search Folder";
                        form.SizeGripStyle = SizeGripStyle.Show;
 
@@ -101,8 +101,8 @@
                        // descriptionLabel
                        descriptionLabel.Anchor = 
((AnchorStyles)(((AnchorStyles.Top | AnchorStyles.Left)
                                | AnchorStyles.Right)));
-                       descriptionLabel.Location = new Point (17, 14);
-                       descriptionLabel.Size = new Size (290, 40);
+                       descriptionLabel.Location = new Point (15, 14);
+                       descriptionLabel.Size = new Size (292, 40);
                        descriptionLabel.TabIndex = 0;
                        descriptionLabel.Text = "";
                        
@@ -111,9 +111,9 @@
                                | AnchorStyles.Left)
                                | AnchorStyles.Right)));
                        folderBrowserTreeView.ImageIndex = -1;
-                       folderBrowserTreeView.Location = new Point (20, 61);
+                       folderBrowserTreeView.Location = new Point (15, 60);
                        folderBrowserTreeView.SelectedImageIndex = -1;
-                       folderBrowserTreeView.Size = new Size (278, 153);
+                       folderBrowserTreeView.Size = new Size (292, 212);
                        folderBrowserTreeView.TabIndex = 1;
                        folderBrowserTreeView.ShowLines = false;
                        folderBrowserTreeView.ShowPlusMinus = true;
@@ -125,8 +125,8 @@
                        // newFolderButton
                        newFolderButton.Anchor = 
((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Left)));
                        newFolderButton.FlatStyle = FlatStyle.System;
-                       newFolderButton.Location = new Point (14, 230);
-                       newFolderButton.Size = new Size (125, 23);
+                       newFolderButton.Location = new Point (15, 285);
+                       newFolderButton.Size = new Size (105, 23);
                        newFolderButton.TabIndex = 2;
                        newFolderButton.Text = "New Folder";
                        newFolderButton.Enabled = true;
@@ -134,7 +134,7 @@
                        // okButton
                        okButton.Anchor = ((AnchorStyles)((AnchorStyles.Bottom 
| AnchorStyles.Right)));
                        okButton.FlatStyle = FlatStyle.System;
-                       okButton.Location = new Point (142, 230);
+                       okButton.Location = new Point (142, 285);
                        okButton.Size = new Size (80, 23);
                        okButton.TabIndex = 3;
                        okButton.Text = "OK";
@@ -143,7 +143,7 @@
                        cancelButton.Anchor = 
((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Right)));
                        cancelButton.DialogResult = DialogResult.Cancel;
                        cancelButton.FlatStyle = FlatStyle.System;
-                       cancelButton.Location = new Point (226, 230);
+                       cancelButton.Location = new Point (227, 285);
                        cancelButton.Size = new Size (80, 23);
                        cancelButton.TabIndex = 4;
                        cancelButton.Text = "Cancel";

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to