Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d466e814
由
HZH
编写于
2019-09-12 14:14:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
bug
1 个父辈
5bbfe64f
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
38 行增加
和
27 行删除
HZH_Controls/HZH_Controls/Controls/Process/UCProcessEllipse.cs
HZH_Controls/HZH_Controls/Controls/Roll/UCRollText.cs
HZH_Controls/HZH_Controls/IconFont/FontImages.cs
HZH_Controls/Test/Form1.cs
HZH_Controls/Test/Form1.resx
HZH_Controls/Test/Form2.Designer.cs
HZH_Controls/HZH_Controls/Controls/Process/UCProcessEllipse.cs
查看文件 @
d466e81
...
@@ -224,7 +224,7 @@ namespace HZH_Controls.Controls
...
@@ -224,7 +224,7 @@ namespace HZH_Controls.Controls
/// <summary>
/// <summary>
/// The m font
/// The m font
/// </summary>
/// </summary>
private
Font
m_font
=
new
Font
(
"Arial Unicode MS"
,
20
);
/// <summary>
/// <summary>
/// 获取或设置控件显示的文字的字体。
/// 获取或设置控件显示的文字的字体。
/// </summary>
/// </summary>
...
@@ -240,11 +240,11 @@ namespace HZH_Controls.Controls
...
@@ -240,11 +240,11 @@ namespace HZH_Controls.Controls
{
{
get
get
{
{
return
m_f
ont
;
return
base
.
F
ont
;
}
}
set
set
{
{
m_f
ont
=
value
;
base
.
F
ont
=
value
;
Refresh
();
Refresh
();
}
}
}
}
...
@@ -302,6 +302,7 @@ namespace HZH_Controls.Controls
...
@@ -302,6 +302,7 @@ namespace HZH_Controls.Controls
this
.
SetStyle
(
ControlStyles
.
SupportsTransparentBackColor
,
true
);
this
.
SetStyle
(
ControlStyles
.
SupportsTransparentBackColor
,
true
);
this
.
SetStyle
(
ControlStyles
.
UserPaint
,
true
);
this
.
SetStyle
(
ControlStyles
.
UserPaint
,
true
);
ForeColor
=
Color
.
White
;
ForeColor
=
Color
.
White
;
Font
=
new
Font
(
"Arial Unicode MS"
,
20
);
}
}
/// <summary>
/// <summary>
...
...
HZH_Controls/HZH_Controls/Controls/Roll/UCRollText.cs
查看文件 @
d466e81
...
@@ -83,6 +83,10 @@ namespace HZH_Controls.Controls
...
@@ -83,6 +83,10 @@ namespace HZH_Controls.Controls
/// Gets or sets the text.
/// Gets or sets the text.
/// </summary>
/// </summary>
/// <value>The text.</value>
/// <value>The text.</value>
[
Bindable
(
true
)]
[
Browsable
(
true
)]
[
DesignerSerializationVisibility
(
DesignerSerializationVisibility
.
Visible
)]
[
EditorBrowsable
(
EditorBrowsableState
.
Always
)]
public
override
string
Text
public
override
string
Text
{
{
get
get
...
...
HZH_Controls/HZH_Controls/IconFont/FontImages.cs
查看文件 @
d466e81
...
@@ -264,9 +264,10 @@ namespace HZH_Controls
...
@@ -264,9 +264,10 @@ namespace HZH_Controls
graphics
.
Clear
(
backColor
.
Value
);
graphics
.
Clear
(
backColor
.
Value
);
string
s
=
char
.
ConvertFromUtf32
((
int
)
iconText
);
string
s
=
char
.
ConvertFromUtf32
((
int
)
iconText
);
graphics
.
TextRenderingHint
=
TextRenderingHint
.
AntiAlias
;
graphics
.
TextRenderingHint
=
TextRenderingHint
.
AntiAlias
;
graphics
.
SetGDIHigh
();
using
(
Brush
brush2
=
new
SolidBrush
(
foreColor
.
Value
))
using
(
Brush
brush2
=
new
SolidBrush
(
foreColor
.
Value
))
{
{
graphics
.
DrawString
(
s
,
imageFont
,
brush2
,
new
PointF
((
imageSize
-
textSize
.
Width
)
/
2.0f
,
(
imageSize
-
textSize
.
Height
)
/
2.0f
));
graphics
.
DrawString
(
s
,
imageFont
,
brush2
,
new
PointF
((
imageSize
-
textSize
.
Width
)
/
2.0f
+
1
,
(
imageSize
-
textSize
.
Height
)
/
2.0f
+
1
));
}
}
}
}
...
...
HZH_Controls/Test/Form1.cs
查看文件 @
d466e81
...
@@ -22,6 +22,8 @@ namespace Test
...
@@ -22,6 +22,8 @@ namespace Test
private
void
Form1_Load
(
object
sender
,
EventArgs
e
)
private
void
Form1_Load
(
object
sender
,
EventArgs
e
)
{
{
var
bit
=
HZH_Controls
.
FontImages
.
GetImage
(
FontIcons
.
A_fa_adn
,
32
,
Color
.
FromArgb
(
255
,
77
,
59
));
bit
.
Save
(
"d:\\3.jpg"
);
for
(
int
i
=
0
;
i
<
3
;
i
++)
for
(
int
i
=
0
;
i
<
3
;
i
++)
{
{
TreeNode
tn
=
new
TreeNode
(
" 父节点"
+
i
);
TreeNode
tn
=
new
TreeNode
(
" 父节点"
+
i
);
...
...
HZH_Controls/Test/Form1.resx
查看文件 @
d466e81
...
@@ -178,33 +178,33 @@
...
@@ -178,33 +178,33 @@
<data name="ucBtnImg1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="ucBtnImg1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAI
rSURBVGhD7VjLbcMwDM0AWaAL9JBbrPTeCQIUtZFLNugG
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAI
qSURBVGhD7VjLUcMwEM2dBmiAGa62w5kKcmCwh0M6oIO0
WSErdIYu0S06jF09mXJjVZYtUnJaQA94yEcyKVJPFJNNQUFBwYD2pXroXtVz21QXw7r61Hynz29dUyma
kBaogSbogmZs9skrExtZtnYlhwG9mTeESNb+nlZydhkZGRl/C+1Tcds9V49tU54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y
x9ZViJZ9i7U9OxalZ4sXqX+RsLTdKQmkLXMtkzpv4TsbNNzEeQtt/58S5wEvvR3MvZ4MKw8yuhftD7zk
PjAVKiIQUyKxcEmXmQumLdAHHfdGn90b4nu96KT1vaCgoKCg4H9js/kGhvlYiuzp+UMAAAAASUVORK5C
dWA6VEAgpkXCcc0tMxXMtYA2Os6NPrsXxPfkdNT+npGRkZHxj7HbfQH0Olesh9QubgAAAABJRU5ErkJg
YII
=
gg=
=
</value>
</value>
</data>
</data>
<data name="ucBtnImg1.ImageFontIcons" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="ucBtnImg1.ImageFontIcons" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
<value>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAI
rSURBVGhD7VjLbcMwDM0AWaAL9JBbrPTeCQIUtZFLNugG
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAI
qSURBVGhD7VjLUcMwEM2dBmiAGa62w5kKcmCwh0M6oIO0
WSErdIYu0S06jF09mXJjVZYtUnJaQA94yEcyKVJPFJNNQUFBwYD2pXroXtVz21QXw7r61Hynz29dUyma
kBaogSbogmZs9skrExtZtnYlhwG9mTeESNb+nlZydhkZGRl/C+1Tcds9V49tU54M6/KD+Mb/v3ZNWfLU
+reAxZnFNuqra1QXIuYgKARKj98PfWbnFz3FtlYf7enpkcytB0gBGfctKpZmR3QiyHR+tM3+LMn6FCEr
3wU4Z5xtqs+uqTofMQdBIVB+/HroM7vs9BzbunpvXx7ueLntACkg4y6nQmkqQongpdOjbYqjJutzhKzY
cpEPWLzPeSp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YA2Os6NPrsXxPfkdNT+npGRkZHxj7HbfQH0Olesh9QubgAAAABJRU5ErkJg
YII
=
gg=
=
</value>
</value>
</data>
</data>
<data name="ucBtnFillet1.BtnImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="ucBtnFillet1.BtnImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
...
...
HZH_Controls/Test/Form2.Designer.cs
查看文件 @
d466e81
...
@@ -199,6 +199,7 @@
...
@@ -199,6 +199,7 @@
this
.
ucRollText1
.
RollStyle
=
HZH_Controls
.
Controls
.
RollStyle
.
BackAndForth
;
this
.
ucRollText1
.
RollStyle
=
HZH_Controls
.
Controls
.
RollStyle
.
BackAndForth
;
this
.
ucRollText1
.
Size
=
new
System
.
Drawing
.
Size
(
555
,
30
);
this
.
ucRollText1
.
Size
=
new
System
.
Drawing
.
Size
(
555
,
30
);
this
.
ucRollText1
.
TabIndex
=
23
;
this
.
ucRollText1
.
TabIndex
=
23
;
this
.
ucRollText1
.
Text
=
"滚动文字1"
;
//
//
// ucWaveChart1
// ucWaveChart1
//
//
...
@@ -225,6 +226,7 @@
...
@@ -225,6 +226,7 @@
//
//
this
.
ucProcessEllipse1
.
BackEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse1
.
BackEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse1
.
CoreEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse1
.
CoreEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse1
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Unicode MS"
,
23F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
ucProcessEllipse1
.
ForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
ucProcessEllipse1
.
ForeColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
ucProcessEllipse1
.
IsShowCoreEllipseBorder
=
true
;
this
.
ucProcessEllipse1
.
IsShowCoreEllipseBorder
=
true
;
this
.
ucProcessEllipse1
.
Location
=
new
System
.
Drawing
.
Point
(
30
,
173
);
this
.
ucProcessEllipse1
.
Location
=
new
System
.
Drawing
.
Point
(
30
,
173
);
...
@@ -233,7 +235,7 @@
...
@@ -233,7 +235,7 @@
this
.
ucProcessEllipse1
.
ShowType
=
HZH_Controls
.
Controls
.
ShowType
.
Ring
;
this
.
ucProcessEllipse1
.
ShowType
=
HZH_Controls
.
Controls
.
ShowType
.
Ring
;
this
.
ucProcessEllipse1
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
150
);
this
.
ucProcessEllipse1
.
Size
=
new
System
.
Drawing
.
Size
(
150
,
150
);
this
.
ucProcessEllipse1
.
TabIndex
=
21
;
this
.
ucProcessEllipse1
.
TabIndex
=
21
;
this
.
ucProcessEllipse1
.
Value
=
0
;
this
.
ucProcessEllipse1
.
Value
=
1
0
;
this
.
ucProcessEllipse1
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessEllipse1
.
ValueColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
this
.
ucProcessEllipse1
.
ValueMargin
=
5
;
this
.
ucProcessEllipse1
.
ValueMargin
=
5
;
this
.
ucProcessEllipse1
.
ValueType
=
HZH_Controls
.
Controls
.
ValueType
.
Percent
;
this
.
ucProcessEllipse1
.
ValueType
=
HZH_Controls
.
Controls
.
ValueType
.
Percent
;
...
@@ -243,6 +245,7 @@
...
@@ -243,6 +245,7 @@
//
//
this
.
ucProcessEllipse2
.
BackEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse2
.
BackEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse2
.
CoreEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse2
.
CoreEllipseColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
228
)))),
((
int
)(((
byte
)(
231
)))),
((
int
)(((
byte
)(
237
)))));
this
.
ucProcessEllipse2
.
Font
=
new
System
.
Drawing
.
Font
(
"Arial Unicode MS"
,
20F
);
this
.
ucProcessEllipse2
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucProcessEllipse2
.
ForeColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucProcessEllipse2
.
IsShowCoreEllipseBorder
=
true
;
this
.
ucProcessEllipse2
.
IsShowCoreEllipseBorder
=
true
;
this
.
ucProcessEllipse2
.
Location
=
new
System
.
Drawing
.
Point
(
224
,
173
);
this
.
ucProcessEllipse2
.
Location
=
new
System
.
Drawing
.
Point
(
224
,
173
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论