Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit cf260eb8
由
HZH
编写于
2019-08-22 08:58:21 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改进度条默认样式
1 个父辈
5fac6131
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
HZH_Controls/HZH_Controls/Controls/Process/UCProcessLine.cs
HZH_Controls/HZH_Controls/Controls/Process/UCProcessLineExt.Designer.cs
HZH_Controls/HZH_Controls/Controls/Process/UCProcessLine.cs
查看文件 @
cf260eb
...
@@ -154,7 +154,7 @@ namespace HZH_Controls.Controls
...
@@ -154,7 +154,7 @@ namespace HZH_Controls.Controls
g
.
FillRectangle
(
sb
,
new
Rectangle
(
base
.
ClientRectangle
.
X
,
base
.
ClientRectangle
.
Y
,
base
.
ClientRectangle
.
Width
-
3
,
base
.
ClientRectangle
.
Height
-
2
));
g
.
FillRectangle
(
sb
,
new
Rectangle
(
base
.
ClientRectangle
.
X
,
base
.
ClientRectangle
.
Y
,
base
.
ClientRectangle
.
Width
-
3
,
base
.
ClientRectangle
.
Height
-
2
));
GraphicsPath
path1
=
ControlHelper
.
CreateRoundedRectanglePath
(
new
Rectangle
(
base
.
ClientRectangle
.
X
,
base
.
ClientRectangle
.
Y
+
1
,
base
.
ClientRectangle
.
Width
-
3
,
base
.
ClientRectangle
.
Height
-
4
),
2
);
GraphicsPath
path1
=
ControlHelper
.
CreateRoundedRectanglePath
(
new
Rectangle
(
base
.
ClientRectangle
.
X
,
base
.
ClientRectangle
.
Y
+
1
,
base
.
ClientRectangle
.
Width
-
3
,
base
.
ClientRectangle
.
Height
-
4
),
2
);
g
.
DrawPath
(
new
Pen
(
m_borderColor
,
1
),
path1
);
g
.
DrawPath
(
new
Pen
(
m_borderColor
,
1
),
path1
);
LinearGradientBrush
lgb
=
new
LinearGradientBrush
(
new
Point
(
0
,
0
),
new
Point
(
0
,
base
.
ClientRectangle
.
Height
-
3
),
m_valueColor
,
Color
.
FromArgb
(
2
0
0
,
m_valueColor
.
R
,
m_valueColor
.
G
,
m_valueColor
.
B
));
LinearGradientBrush
lgb
=
new
LinearGradientBrush
(
new
Point
(
0
,
0
),
new
Point
(
0
,
base
.
ClientRectangle
.
Height
-
3
),
m_valueColor
,
Color
.
FromArgb
(
2
5
0
,
m_valueColor
.
R
,
m_valueColor
.
G
,
m_valueColor
.
B
));
g
.
FillPath
(
lgb
,
ControlHelper
.
CreateRoundedRectanglePath
(
new
Rectangle
(
0
,
(
base
.
ClientRectangle
.
Height
-
(
base
.
ClientRectangle
.
Height
-
3
))
/
2
,
(
base
.
ClientRectangle
.
Width
-
3
)
*
Value
/
m_maxValue
,
base
.
ClientRectangle
.
Height
-
4
),
2
));
g
.
FillPath
(
lgb
,
ControlHelper
.
CreateRoundedRectanglePath
(
new
Rectangle
(
0
,
(
base
.
ClientRectangle
.
Height
-
(
base
.
ClientRectangle
.
Height
-
3
))
/
2
,
(
base
.
ClientRectangle
.
Width
-
3
)
*
Value
/
m_maxValue
,
base
.
ClientRectangle
.
Height
-
4
),
2
));
string
strValue
=
string
.
Empty
;
string
strValue
=
string
.
Empty
;
if
(
m_valueTextType
==
HZH_Controls
.
Controls
.
ValueTextType
.
Percent
)
if
(
m_valueTextType
==
HZH_Controls
.
Controls
.
ValueTextType
.
Percent
)
...
...
HZH_Controls/HZH_Controls/Controls/Process/UCProcessLineExt.Designer.cs
查看文件 @
cf260eb
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
BackColor
=
System
.
Drawing
.
Color
.
Transparent
;
this
.
Controls
.
Add
(
this
.
ucProcessLine1
);
this
.
Controls
.
Add
(
this
.
ucProcessLine1
);
this
.
ForeColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
Name
=
"UCProcessLineExt"
;
this
.
Name
=
"UCProcessLineExt"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
434
,
50
);
this
.
Size
=
new
System
.
Drawing
.
Size
(
434
,
50
);
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论