minimum widths for windows

This commit is contained in:
lempamo 2017-09-19 18:23:31 -04:00
parent 027924bedc
commit 63015b6068
7 changed files with 46 additions and 14 deletions

View file

@ -77,7 +77,7 @@ private void right_MouseMove(object sender, MouseEventArgs e)
if (e.Button == MouseButtons.Left)
{
var toDraw = resizer.ToDraw;
if (resizable) toDraw.Width = MousePosition.X - this.Location.X;
if (resizable) if (MousePosition.X - this.Location.X > progContent.MinimumSize.Width + 8) toDraw.Width = MousePosition.X - this.Location.X;
resizer.ToDraw = toDraw;
}
}
@ -87,8 +87,10 @@ private void left_MouseMove(object sender, MouseEventArgs e)
if (e.Button == MouseButtons.Left)
{
var toDraw = resizer.ToDraw;
if (resizable) toDraw.Width = ((this.Width + this.Location.X) - Cursor.Position.X);
if (resizable) toDraw.X = Cursor.Position.X;
if (resizable) {
if (((this.Width + this.Location.X) - Cursor.Position.X) > progContent.MinimumSize.Width + 8) toDraw.Width = ((this.Width + this.Location.X) - Cursor.Position.X);
if (((this.Width + this.Location.X) - Cursor.Position.X) > progContent.MinimumSize.Width + 8) toDraw.X = Cursor.Position.X;
}
resizer.ToDraw = toDraw;
}
}

View file

@ -615,6 +615,7 @@
<None Include="Resources\IE4\IE4Home_IE4CD.png" />
<None Include="Resources\IE4\IE4Home_HDots.png" />
<None Include="Resources\IE4\IE4Home_SecUpdate.png" />
<None Include="Resources\IE4\IE4Home_MSProducts.png" />
<Content Include="Resources\IE4\ie4start.html" />
<None Include="Resources\IE4\nopage.bmp" />
<Content Include="Resources\IE4\padams.html" />

View file

@ -30,6 +30,7 @@ private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(IE4HomePage));
this.panel1 = new System.Windows.Forms.Panel();
this.pictureBox16 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.panel2 = new System.Windows.Forms.Panel();
@ -67,6 +68,7 @@ private void InitializeComponent()
this.pictureBox7 = new System.Windows.Forms.PictureBox();
this.classicLabel10 = new Histacom2.Engine.UI.ClassicLabel();
this.panel6 = new System.Windows.Forms.Panel();
this.classicLabel25 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel15 = new Histacom2.Engine.UI.ClassicLabel();
this.panel12 = new System.Windows.Forms.Panel();
this.classicLabel9 = new Histacom2.Engine.UI.ClassicLabel();
@ -83,8 +85,8 @@ private void InitializeComponent()
this.classicLabel2 = new Histacom2.Engine.UI.ClassicLabel();
this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel();
this.panel7 = new System.Windows.Forms.Panel();
this.classicLabel25 = new Histacom2.Engine.UI.ClassicLabel();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox16)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel2.SuspendLayout();
@ -113,6 +115,7 @@ private void InitializeComponent()
// panel1
//
this.panel1.BackgroundImage = global::Histacom2.Properties.Resources.IE4Home_MSBG;
this.panel1.Controls.Add(this.pictureBox16);
this.panel1.Controls.Add(this.pictureBox2);
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
@ -121,6 +124,16 @@ private void InitializeComponent()
this.panel1.Size = new System.Drawing.Size(959, 21);
this.panel1.TabIndex = 0;
//
// pictureBox16
//
this.pictureBox16.BackgroundImage = global::Histacom2.Properties.Resources.IE4Home_MSProducts;
this.pictureBox16.Dock = System.Windows.Forms.DockStyle.Left;
this.pictureBox16.Location = new System.Drawing.Point(104, 0);
this.pictureBox16.Name = "pictureBox16";
this.pictureBox16.Size = new System.Drawing.Size(81, 21);
this.pictureBox16.TabIndex = 2;
this.pictureBox16.TabStop = false;
//
// pictureBox2
//
this.pictureBox2.BackgroundImage = global::Histacom2.Properties.Resources.IE4Home_MSLogo;
@ -542,6 +555,16 @@ private void InitializeComponent()
this.panel6.Size = new System.Drawing.Size(585, 452);
this.panel6.TabIndex = 5;
//
// classicLabel25
//
this.classicLabel25.Dock = System.Windows.Forms.DockStyle.Bottom;
this.classicLabel25.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.classicLabel25.Location = new System.Drawing.Point(0, 438);
this.classicLabel25.Name = "classicLabel25";
this.classicLabel25.Size = new System.Drawing.Size(570, 14);
this.classicLabel25.TabIndex = 14;
this.classicLabel25.Text = "Last updated: Tuesday, November 03, 1998";
//
// classicLabel15
//
this.classicLabel15.Dock = System.Windows.Forms.DockStyle.Top;
@ -706,16 +729,6 @@ private void InitializeComponent()
this.panel7.Size = new System.Drawing.Size(959, 1);
this.panel7.TabIndex = 0;
//
// classicLabel25
//
this.classicLabel25.Dock = System.Windows.Forms.DockStyle.Bottom;
this.classicLabel25.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.classicLabel25.Location = new System.Drawing.Point(0, 438);
this.classicLabel25.Name = "classicLabel25";
this.classicLabel25.Size = new System.Drawing.Size(570, 14);
this.classicLabel25.TabIndex = 14;
this.classicLabel25.Text = "Last updated: Tuesday, November 03, 1998";
//
// IE4HomePage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -733,6 +746,7 @@ private void InitializeComponent()
this.Size = new System.Drawing.Size(959, 542);
this.SizeChanged += new System.EventHandler(this.IE4HomePage_SizeChanged);
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox16)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel2.ResumeLayout(false);
@ -818,5 +832,6 @@ private void InitializeComponent()
private Engine.UI.ClassicLabel classicLabel24;
private System.Windows.Forms.PictureBox pictureBox15;
private Engine.UI.ClassicLabel classicLabel25;
private System.Windows.Forms.PictureBox pictureBox16;
}
}

View file

@ -1317,6 +1317,7 @@ private void InitializeComponent()
this.Controls.Add(this.Panel14);
this.Controls.Add(this.Panel1);
this.Controls.Add(this.MenuStrip3);
this.MinimumSize = new System.Drawing.Size(650, 0);
this.Name = "WinClassicIE4";
this.Size = new System.Drawing.Size(959, 644);
this.Load += new System.EventHandler(this.TempIE4_Load);

View file

@ -1936,6 +1936,9 @@
<data name="IE4Home_MSLogo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\IE4\IE4Home_MSLogo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="IE4Home_MSProducts" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\IE4\IE4Home_MSProducts.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="IE4Home_SecUpdate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\IE4\IE4Home_SecUpdate.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>

View file

@ -604,6 +604,16 @@ public static System.Drawing.Bitmap IE4Home_MSLogo {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap IE4Home_MSProducts {
get {
object obj = ResourceManager.GetObject("IE4Home_MSProducts", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B