Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 50dd92ea
由
HZH
编写于
2019-09-03 09:55:51 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
双缓存
1 个父辈
3f792581
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
1 行删除
HZH_Controls/HZH_Controls/Controls/LED/UCLEDNum.cs
HZH_Controls/HZH_Controls/Controls/Roll/UCRollText.cs
HZH_Controls/Test/Form2.Designer.cs
HZH_Controls/HZH_Controls/Controls/LED/UCLEDNum.cs
查看文件 @
50dd92e
...
@@ -53,6 +53,12 @@ namespace HZH_Controls.Controls
...
@@ -53,6 +53,12 @@ namespace HZH_Controls.Controls
public
UCLEDNum
()
public
UCLEDNum
()
{
{
this
.
SetStyle
(
ControlStyles
.
AllPaintingInWmPaint
,
true
);
this
.
SetStyle
(
ControlStyles
.
DoubleBuffer
,
true
);
this
.
SetStyle
(
ControlStyles
.
ResizeRedraw
,
true
);
this
.
SetStyle
(
ControlStyles
.
Selectable
,
true
);
this
.
SetStyle
(
ControlStyles
.
SupportsTransparentBackColor
,
true
);
this
.
SetStyle
(
ControlStyles
.
UserPaint
,
true
);
SizeChanged
+=
LEDNum_SizeChanged
;
SizeChanged
+=
LEDNum_SizeChanged
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
Size
=
new
System
.
Drawing
.
Size
(
40
,
70
);
Size
=
new
System
.
Drawing
.
Size
(
40
,
70
);
...
...
HZH_Controls/HZH_Controls/Controls/Roll/UCRollText.cs
查看文件 @
50dd92e
...
@@ -109,6 +109,13 @@ namespace HZH_Controls.Controls
...
@@ -109,6 +109,13 @@ namespace HZH_Controls.Controls
Timer
m_timer
;
Timer
m_timer
;
public
UCRollText
()
public
UCRollText
()
{
{
this
.
SetStyle
(
ControlStyles
.
AllPaintingInWmPaint
,
true
);
this
.
SetStyle
(
ControlStyles
.
DoubleBuffer
,
true
);
this
.
SetStyle
(
ControlStyles
.
ResizeRedraw
,
true
);
this
.
SetStyle
(
ControlStyles
.
Selectable
,
true
);
this
.
SetStyle
(
ControlStyles
.
SupportsTransparentBackColor
,
true
);
this
.
SetStyle
(
ControlStyles
.
UserPaint
,
true
);
this
.
SizeChanged
+=
UCRollText_SizeChanged
;
this
.
SizeChanged
+=
UCRollText_SizeChanged
;
this
.
Size
=
new
Size
(
450
,
30
);
this
.
Size
=
new
Size
(
450
,
30
);
Text
=
"滚动文字"
;
Text
=
"滚动文字"
;
...
...
HZH_Controls/Test/Form2.Designer.cs
查看文件 @
50dd92e
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
this
.
ucRollText1
.
Location
=
new
System
.
Drawing
.
Point
(
843
,
554
);
this
.
ucRollText1
.
Location
=
new
System
.
Drawing
.
Point
(
843
,
554
);
this
.
ucRollText1
.
MoveSleepTime
=
50
;
this
.
ucRollText1
.
MoveSleepTime
=
50
;
this
.
ucRollText1
.
Name
=
"ucRollText1"
;
this
.
ucRollText1
.
Name
=
"ucRollText1"
;
this
.
ucRollText1
.
RollStyle
=
HZH_Controls
.
Controls
.
RollStyle
.
LeftToRight
;
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
;
//
//
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论