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 FileDialog.cs, 1.5, 1


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/System.Windows.Forms FileDialog.cs, 1.5, 1.6 HBoxLayout.cs, 1.4, 1.5 VBoxLayout.cs, 1.3, 1.4
Date: Sun, 30 Nov 2003 23:44:32 +0000

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

Modified Files:
        FileDialog.cs HBoxLayout.cs VBoxLayout.cs 
Log Message:


Fix some bugs in the layout management classes and the file dialog.


Index: FileDialog.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/FileDialog.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** FileDialog.cs       22 Nov 2003 05:02:14 -0000      1.5
--- FileDialog.cs       30 Nov 2003 23:44:30 -0000      1.6
***************
*** 404,407 ****
--- 404,408 ----
                private ComboBox directory;
                private Button upButton;
+               private Button newDirButton;
                private Label nameLabel;
                private TextBox name;
***************
*** 437,443 ****
--- 438,448 ----
                                        upButton.FlatStyle = FlatStyle.Popup;
                                        upButton.Text = "Up";   // TODO: change 
to an image.
+                                       newDirButton = new Button();
+                                       newDirButton.FlatStyle = 
FlatStyle.Popup;
+                                       newDirButton.Text = "New";      // 
TODO: change to an image.
                                        hbox.StretchControl = directory;
                                        hbox.Controls.Add(directory);
                                        hbox.Controls.Add(upButton);
+                                       hbox.Controls.Add(newDirButton);
  
                                        // The second line is "listBox", 
already created above.
***************
*** 475,478 ****
--- 480,484 ----
                                        }
                                        ClientSize = size;
+                                       MinimumSize = size;
                                }
  

Index: HBoxLayout.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/HBoxLayout.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** HBoxLayout.cs       30 Nov 2003 00:44:06 -0000      1.4
--- HBoxLayout.cs       30 Nov 2003 23:44:30 -0000      1.5
***************
*** 107,111 ****
                                else if(control is Label)
                                {
!                                       return new 
Size(((Label)control).PreferredWidth,
                                                                        
((Label)control).PreferredHeight);
                                }
--- 107,111 ----
                                else if(control is Label)
                                {
!                                       return new 
Size(((Label)control).PreferredWidth + 1,
                                                                        
((Label)control).PreferredHeight);
                                }
***************
*** 276,280 ****
                                posn2 = clientSize.Width - margin;
                                index = count - 1;
!                               while(index > 0)
                                {
                                        child = controls[index];
--- 276,280 ----
                                posn2 = clientSize.Width - margin;
                                index = count - 1;
!                               while(index >= 0)
                                {
                                        child = controls[index];

Index: VBoxLayout.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/VBoxLayout.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** VBoxLayout.cs       30 Nov 2003 00:44:06 -0000      1.3
--- VBoxLayout.cs       30 Nov 2003 23:44:30 -0000      1.4
***************
*** 248,252 ****
                                                childSize = 
HBoxLayout.GetRecommendedSize(child);
                                                child.SetBounds
!                                                       (margin, posn, 
childSize.Width - 2 * margin,
                                                         childSize.Height);
                                                posn += childSize.Height + 
spacing;
--- 248,252 ----
                                                childSize = 
HBoxLayout.GetRecommendedSize(child);
                                                child.SetBounds
!                                                       (margin, posn, 
clientSize.Width - 2 * margin,
                                                         childSize.Height);
                                                posn += childSize.Height + 
spacing;
***************
*** 258,262 ****
                                posn2 = clientSize.Height - margin;
                                index = count - 1;
!                               while(index > 0)
                                {
                                        child = controls[index];
--- 258,262 ----
                                posn2 = clientSize.Height - margin;
                                index = count - 1;
!                               while(index >= 0)
                                {
                                        child = controls[index];





reply via email to

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