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


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms ButtonBase.cs,1.2,1.3 Control.cs,1.5,1.6 Form.cs,1.3,1.4 HACKING,1.1,1.2
Date: Thu, 12 Jun 2003 03:56:37 -0400

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

Modified Files:
        ButtonBase.cs Control.cs Form.cs HACKING 
Log Message:


Child controls like "Button" are visible by default, while "Form"
controls are hidden by default.


Index: ButtonBase.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/ButtonBase.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ButtonBase.cs       12 Jun 2003 02:55:48 -0000      1.2
--- ButtonBase.cs       12 Jun 2003 07:56:35 -0000      1.3
***************
*** 380,384 ****
                        {
                                // Bail out if the button is not currently 
visible.
!                               if(!Visible)
                                {
                                        return;
--- 380,384 ----
                        {
                                // Bail out if the button is not currently 
visible.
!                               if(!Visible || !IsHandleCreated)
                                {
                                        return;

Index: Control.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Control.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Control.cs  12 Jun 2003 06:39:11 -0000      1.5
--- Control.cs  12 Jun 2003 07:56:35 -0000      1.6
***************
*** 48,52 ****
        private BindingContext bindingContext;
        private bool enabled;
!       private bool visible;
        private bool allowDrop;
        private bool causesValidation;
--- 48,52 ----
        private BindingContext bindingContext;
        private bool enabled;
!       internal bool visible;
        private bool allowDrop;
        private bool causesValidation;
***************
*** 72,75 ****
--- 72,76 ----
                                this.name = String.Empty;
                                this.enabled = true;
+                               this.visible = true;
                                this.anchorStyles =
                                        (byte)(AnchorStyles.Top | 
AnchorStyles.Left);

Index: Form.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Form.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Form.cs     12 Jun 2003 05:50:29 -0000      1.3
--- Form.cs     12 Jun 2003 07:56:35 -0000      1.4
***************
*** 60,63 ****
--- 60,64 ----
        public Form()
                        {
+                               visible = false;
                                autoScale = true;
                                topLevel = true;

Index: HACKING
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/HACKING,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** HACKING     12 Jun 2003 06:40:10 -0000      1.1
--- HACKING     12 Jun 2003 07:56:35 -0000      1.2
***************
*** 108,112 ****
                  {
                      // Bail out if the control is not visible.
!                     if(!Visible)
                      {
                          return;
--- 108,112 ----
                  {
                      // Bail out if the control is not visible.
!                     if(!Visible || !IsHandleCreated)
                      {
                          return;





reply via email to

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