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 ProgressBar.cs,


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms ProgressBar.cs,1.2,1.3 ControlPaint.cs,1.4,1.5
Date: Sat, 21 Jun 2003 17:51:43 -0400

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

Modified Files:
        ProgressBar.cs ControlPaint.cs 
Log Message:
ProgressBar class fixes and CustomControl additions


Index: ProgressBar.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/ProgressBar.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ProgressBar.cs      20 Jun 2003 22:12:09 -0000      1.2
--- ProgressBar.cs      21 Jun 2003 21:51:40 -0000      1.3
***************
*** 51,59 ****
                                int height=clientSize.Height;
                                int steps=range/step;
!                               
                                using(Brush brush=CreateBackgroundBrush())
                                {
                                        
graphics.FillRectangle(brush,x,y,width,height);
                                }
                                ControlPaint.DrawProgressBar(graphics, x, y, 
                                                                                
        clientSize.Width,
--- 51,60 ----
                                int height=clientSize.Height;
                                int steps=range/step;
! 
                                using(Brush brush=CreateBackgroundBrush())
                                {
                                        
graphics.FillRectangle(brush,x,y,width,height);
                                }
+                               
                                ControlPaint.DrawProgressBar(graphics, x, y, 
                                                                                
        clientSize.Width,
***************
*** 99,103 ****
                                get
                                {
!                                       return new Size(160,20);
                                }
                        }       
--- 100,104 ----
                                get
                                {
!                                       return new Size(138,20);
                                }
                        }       

Index: ControlPaint.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/ControlPaint.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** ControlPaint.cs     21 Jun 2003 09:43:50 -0000      1.4
--- ControlPaint.cs     21 Jun 2003 21:51:40 -0000      1.5
***************
*** 589,593 ****
                                blockHeight=height-ySpacing-1;
                                                
!                               x+=2*xSpacing;
  
                                for(int i=0;i<steps;i++)
--- 589,593 ----
                                blockHeight=height-ySpacing-1;
                                                
!                               x+=xSpacing;
  
                                for(int i=0;i<steps;i++)
***************
*** 598,602 ****
                                                                                
        blockWidth,
                                                                                
        blockHeight,
!                                                                               
        SystemColors.Highlight);
                                        }
                                        x+=blockWidth+xSpacing;
--- 598,603 ----
                                                                                
        blockWidth,
                                                                                
        blockHeight,
!                                                                               
        enabled ? SystemColors.Highlight
!                                                                               
                        : SystemColors.ControlDark);
                                        }
                                        x+=blockWidth+xSpacing;





reply via email to

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