Commit 13c2624f HZH

tab标签高度

1 个父辈 00f3e68e
...@@ -18,6 +18,7 @@ namespace HZH_Controls.Controls ...@@ -18,6 +18,7 @@ namespace HZH_Controls.Controls
{ {
SetStyles(); SetStyles();
this.Multiline = true; this.Multiline = true;
this.ItemSize = new Size(this.ItemSize.Width, 50);
} }
private void SetStyles() private void SetStyles()
...@@ -274,7 +275,7 @@ namespace HZH_Controls.Controls ...@@ -274,7 +275,7 @@ namespace HZH_Controls.Controls
{ {
Rectangle borderRect = this.TabPages[0].Bounds; Rectangle borderRect = this.TabPages[0].Bounds;
//borderRect.Inflate(1, 1); //borderRect.Inflate(1, 1);
Rectangle rect = new Rectangle(borderRect.X - 2, borderRect.Y-1, borderRect.Width + 5, borderRect.Height+2); Rectangle rect = new Rectangle(borderRect.X - 2, borderRect.Y - 1, borderRect.Width + 5, borderRect.Height + 2);
ControlPaint.DrawBorder(e.Graphics, rect, this.BorderColor, ButtonBorderStyle.Solid); ControlPaint.DrawBorder(e.Graphics, rect, this.BorderColor, ButtonBorderStyle.Solid);
} }
} }
...@@ -318,9 +319,9 @@ namespace HZH_Controls.Controls ...@@ -318,9 +319,9 @@ namespace HZH_Controls.Controls
} }
path.AddLine(rect.Left, rect.Top, rect.Left, rect.Bottom + 1); path.AddLine(rect.Left, rect.Top, rect.Left, rect.Bottom + 1);
path.AddLine(rect.Left, rect.Top, rect.Right , rect.Top); path.AddLine(rect.Left, rect.Top, rect.Right, rect.Top);
path.AddLine(rect.Right , rect.Top, rect.Right , rect.Bottom + 1); path.AddLine(rect.Right, rect.Top, rect.Right, rect.Bottom + 1);
path.AddLine(rect.Right , rect.Bottom + 1, rect.Left, rect.Bottom + 1); path.AddLine(rect.Right, rect.Bottom + 1, rect.Left, rect.Bottom + 1);
return path; return path;
} }
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
this.tabPage8 = new System.Windows.Forms.TabPage(); this.tabPage8 = new System.Windows.Forms.TabPage();
this.tabPage9 = new System.Windows.Forms.TabPage(); this.tabPage9 = new System.Windows.Forms.TabPage();
this.tabPage10 = new System.Windows.Forms.TabPage(); this.tabPage10 = new System.Windows.Forms.TabPage();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage(); this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage(); this.tabPage3 = new System.Windows.Forms.TabPage();
this.tabPage4 = new System.Windows.Forms.TabPage(); this.tabPage4 = new System.Windows.Forms.TabPage();
...@@ -54,7 +53,6 @@ ...@@ -54,7 +53,6 @@
this.tabControlExt1.Controls.Add(this.tabPage8); this.tabControlExt1.Controls.Add(this.tabPage8);
this.tabControlExt1.Controls.Add(this.tabPage9); this.tabControlExt1.Controls.Add(this.tabPage9);
this.tabControlExt1.Controls.Add(this.tabPage10); this.tabControlExt1.Controls.Add(this.tabPage10);
this.tabControlExt1.Controls.Add(this.tabPage1);
this.tabControlExt1.Controls.Add(this.tabPage2); this.tabControlExt1.Controls.Add(this.tabPage2);
this.tabControlExt1.Controls.Add(this.tabPage3); this.tabControlExt1.Controls.Add(this.tabPage3);
this.tabControlExt1.Controls.Add(this.tabPage4); this.tabControlExt1.Controls.Add(this.tabPage4);
...@@ -72,10 +70,10 @@ ...@@ -72,10 +70,10 @@
// //
// tabPage7 // tabPage7
// //
this.tabPage7.Location = new System.Drawing.Point(4, 54); this.tabPage7.Location = new System.Drawing.Point(4, 104);
this.tabPage7.Name = "tabPage7"; this.tabPage7.Name = "tabPage7";
this.tabPage7.Padding = new System.Windows.Forms.Padding(3); this.tabPage7.Padding = new System.Windows.Forms.Padding(3);
this.tabPage7.Size = new System.Drawing.Size(520, 263); this.tabPage7.Size = new System.Drawing.Size(520, 213);
this.tabPage7.TabIndex = 6; this.tabPage7.TabIndex = 6;
this.tabPage7.Text = "tabPage7"; this.tabPage7.Text = "tabPage7";
this.tabPage7.UseVisualStyleBackColor = true; this.tabPage7.UseVisualStyleBackColor = true;
...@@ -110,16 +108,6 @@ ...@@ -110,16 +108,6 @@
this.tabPage10.Text = "tabPage10"; this.tabPage10.Text = "tabPage10";
this.tabPage10.UseVisualStyleBackColor = true; this.tabPage10.UseVisualStyleBackColor = true;
// //
// tabPage1
//
this.tabPage1.Location = new System.Drawing.Point(4, 54);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(520, 263);
this.tabPage1.TabIndex = 10;
this.tabPage1.Text = "tabPage1";
this.tabPage1.UseVisualStyleBackColor = true;
//
// tabPage2 // tabPage2
// //
this.tabPage2.Location = new System.Drawing.Point(4, 54); this.tabPage2.Location = new System.Drawing.Point(4, 54);
...@@ -191,7 +179,6 @@ ...@@ -191,7 +179,6 @@
private System.Windows.Forms.TabPage tabPage8; private System.Windows.Forms.TabPage tabPage8;
private System.Windows.Forms.TabPage tabPage9; private System.Windows.Forms.TabPage tabPage9;
private System.Windows.Forms.TabPage tabPage10; private System.Windows.Forms.TabPage tabPage10;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage3; private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.TabPage tabPage4; private System.Windows.Forms.TabPage tabPage4;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!