Changeset 122


Ignore:
Timestamp:
3/7/2008 7:26:29 AM (7 years ago)
Author:
lowjoel
Message:

-Resize the BasePanel? to reflect the height of the default dialog
-Set the BasePanel?'s Dock property as a hint to the panel manager of the MainForm?

Location:
branches/eraser6/Eraser
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/BasePanel.Designer.cs

    r112 r122  
    5252            this.content.Location = new System.Drawing.Point(20, 52); 
    5353            this.content.Name = "content"; 
    54             this.content.Size = new System.Drawing.Size(622, 272); 
     54            this.content.Size = new System.Drawing.Size(622, 377); 
    5555            this.content.TabIndex = 3; 
    5656            //  
     
    7171            this.Name = "BasePanel"; 
    7272            this.Padding = new System.Windows.Forms.Padding(17); 
    73             this.Size = new System.Drawing.Size(662, 344); 
     73            this.Size = new System.Drawing.Size(662, 449); 
    7474            ((System.ComponentModel.ISupportInitialize)(this.titleIcon)).EndInit(); 
    7575            this.ResumeLayout(false); 
  • branches/eraser6/Eraser/BasePanel.cs

    r112 r122  
    1414        { 
    1515            InitializeComponent(); 
     16            Dock = DockStyle.Fill; 
    1617        } 
    1718    } 
  • branches/eraser6/Eraser/MainForm.cs

    r119 r122  
    8686                contentPanel.Controls.Remove(oldPage); 
    8787                contentPanel.Controls.Add(CurrPage); 
    88                 CurrPage.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; 
    89                 CurrPage.Left = 0; 
    90                 CurrPage.Top = 0; 
    91                 CurrPage.Width = contentPanel.Width; 
     88 
     89                if (CurrPage.Dock == DockStyle.None) 
     90                { 
     91                    CurrPage.Anchor = AnchorStyles.Left | AnchorStyles.Right | 
     92                        AnchorStyles.Top; 
     93                    CurrPage.Left = 0; 
     94                    CurrPage.Top = 0; 
     95                    CurrPage.Width = contentPanel.Width; 
     96                } 
    9297                contentPanel.ResumeLayout(); 
    9398            } 
  • branches/eraser6/Eraser/SettingsPanel.cs

    r112 r122  
    1414        { 
    1515            InitializeComponent(); 
     16            Dock = DockStyle.None; 
    1617        } 
    1718    } 
Note: See TracChangeset for help on using the changeset viewer.