Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 13c2624f
由
HZH
编写于
2019-08-17 11:06:46 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
tab标签高度
1 个父辈
00f3e68e
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
19 行删除
HZH_Controls/HZH_Controls/Controls/Tab/TabControlExt.cs
HZH_Controls/Test/FrmOKCancel1Test.Designer.cs
HZH_Controls/HZH_Controls/Controls/Tab/TabControlExt.cs
查看文件 @
13c2624
...
@@ -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
;
}
}
...
...
HZH_Controls/Test/FrmOKCancel1Test.Designer.cs
查看文件 @
13c2624
...
@@ -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
,
5
4
);
this
.
tabPage7
.
Location
=
new
System
.
Drawing
.
Point
(
4
,
10
4
);
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
,
2
6
3
);
this
.
tabPage7
.
Size
=
new
System
.
Drawing
.
Size
(
520
,
2
1
3
);
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!
Cancel
请
注册
或
登录
后发表评论