Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit add05d52
由
HZH
编写于
2019-12-04 13:48:30 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
解决文本框水印文字问题
1 个父辈
26aec14f
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
25 行增加
和
24 行删除
HZH_Controls/HZH_Controls/Controls/Text/TextBoxEx.cs
HZH_Controls/Test/UC/UCTestMindMapping.Designer.cs
HZH_Controls/HZH_Controls/Controls/Text/TextBoxEx.cs
查看文件 @
add05d5
...
...
@@ -369,15 +369,15 @@ namespace HZH_Controls.Controls
/// 处理 Windows 消息。
/// </summary>
/// <param name="m">一个 Windows 消息对象。</param>
//
protected override void WndProc(ref Message m)
//
{
//
base.WndProc(ref m);
//
if (m.Msg == 15 || m.Msg == 7 || m.Msg == 8)
//
{
// //
this.OnPaint(null);
//
Invalidate();
//
}
//
}
protected
override
void
WndProc
(
ref
Message
m
)
{
base
.
WndProc
(
ref
m
);
if
(
m
.
Msg
==
15
||
m
.
Msg
==
7
||
m
.
Msg
==
8
)
{
this
.
OnPaint
(
null
);
//
Invalidate();
}
}
/// <summary>
/// Handles the <see cref="E:TextChanged" /> event.
...
...
HZH_Controls/Test/UC/UCTestMindMapping.Designer.cs
查看文件 @
add05d5
...
...
@@ -29,16 +29,31 @@
private
void
InitializeComponent
()
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
ucMindMappingPanel1
=
new
HZH_Controls
.
Controls
.
UCMindMappingPanel
();
this
.
contextMenuStrip1
=
new
System
.
Windows
.
Forms
.
ContextMenuStrip
(
this
.
components
);
this
.
aaaaaToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
ucMindMappingPanel1
=
new
HZH_Controls
.
Controls
.
UCMindMappingPanel
();
this
.
contextMenuStrip1
.
SuspendLayout
();
this
.
SuspendLayout
();
//
// contextMenuStrip1
//
this
.
contextMenuStrip1
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
aaaaaToolStripMenuItem
});
this
.
contextMenuStrip1
.
Name
=
"contextMenuStrip1"
;
this
.
contextMenuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
149
,
26
);
//
// aaaaaToolStripMenuItem
//
this
.
aaaaaToolStripMenuItem
.
Name
=
"aaaaaToolStripMenuItem"
;
this
.
aaaaaToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
148
,
22
);
this
.
aaaaaToolStripMenuItem
.
Text
=
"更改随机文本"
;
this
.
aaaaaToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
ToolStripMenuItem_Click
);
//
// ucMindMappingPanel1
//
this
.
ucMindMappingPanel1
.
AutoScroll
=
true
;
this
.
ucMindMappingPanel1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucMindMappingPanel1
.
ContextMenuStrip
=
this
.
contextMenuStrip1
;
this
.
ucMindMappingPanel1
.
DataSource
=
null
;
this
.
ucMindMappingPanel1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ucMindMappingPanel1
.
ItemBackcolor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
59
)))));
...
...
@@ -49,20 +64,6 @@
this
.
ucMindMappingPanel1
.
Size
=
new
System
.
Drawing
.
Size
(
707
,
581
);
this
.
ucMindMappingPanel1
.
TabIndex
=
1
;
//
// contextMenuStrip1
//
this
.
contextMenuStrip1
.
Items
.
AddRange
(
new
System
.
Windows
.
Forms
.
ToolStripItem
[]
{
this
.
aaaaaToolStripMenuItem
});
this
.
contextMenuStrip1
.
Name
=
"contextMenuStrip1"
;
this
.
contextMenuStrip1
.
Size
=
new
System
.
Drawing
.
Size
(
153
,
48
);
//
// aaaaaToolStripMenuItem
//
this
.
aaaaaToolStripMenuItem
.
Name
=
"aaaaaToolStripMenuItem"
;
this
.
aaaaaToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
152
,
22
);
this
.
aaaaaToolStripMenuItem
.
Text
=
"更改随机文本"
;
this
.
aaaaaToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
ToolStripMenuItem_Click
);
//
// UCTestMindMapping
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论