Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7c9d7932
由
mygithubxjw
编写于
2020-07-20 15:38:47 +0800
由
GitHub
提交于
2020-07-20 15:38:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
Update FrmAnchor.cs
增加对多显示屏的支持
1 个父辈
c87f5b57
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
5 行删除
HZH_Controls/HZH_Controls/Forms/FrmAnchor.cs
HZH_Controls/HZH_Controls/Forms/FrmAnchor.cs
查看文件 @
7c9d793
// ***********************************************************************
// ***********************************************************************
// Assembly : HZH_Controls
// Assembly : HZH_Controls
// Created : 08-08-2019
// Created : 08-08-2019
//
//
...
@@ -245,10 +245,11 @@ namespace HZH_Controls.Forms
...
@@ -245,10 +245,11 @@ namespace HZH_Controls.Forms
timer1
.
Enabled
=
this
.
Visible
;
timer1
.
Enabled
=
this
.
Visible
;
if
(
this
.
Visible
)
if
(
this
.
Visible
)
{
{
Screen
currentScreen
=
Screen
.
FromControl
(
m_parentControl
);
Point
p
=
m_parentControl
.
Parent
.
PointToScreen
(
m_parentControl
.
Location
);
Point
p
=
m_parentControl
.
Parent
.
PointToScreen
(
m_parentControl
.
Location
);
int
intX
=
0
;
int
intX
=
0
;
int
intY
=
0
;
int
intY
=
0
;
if
(
p
.
Y
+
m_parentControl
.
Height
+
m_size
.
Height
>
Screen
.
Primary
Screen
.
Bounds
.
Height
)
if
(
p
.
Y
+
m_parentControl
.
Height
+
m_size
.
Height
>
current
Screen
.
Bounds
.
Height
)
{
{
intY
=
p
.
Y
-
m_size
.
Height
-
1
;
intY
=
p
.
Y
-
m_size
.
Height
-
1
;
blnDown
=
false
;
blnDown
=
false
;
...
@@ -259,9 +260,10 @@ namespace HZH_Controls.Forms
...
@@ -259,9 +260,10 @@ namespace HZH_Controls.Forms
blnDown
=
true
;
blnDown
=
true
;
}
}
if
(
p
.
X
+
m_size
.
Width
>
Screen
.
PrimaryScreen
.
Bounds
.
Width
)
if
(
p
.
X
+
m_size
.
Width
>
currentScreen
.
Bounds
.
Width
)
{
{
intX
=
Screen
.
Primary
Screen
.
Bounds
.
Width
-
m_size
.
Width
;
intX
=
current
Screen
.
Bounds
.
Width
-
m_size
.
Width
;
}
}
else
else
...
@@ -273,7 +275,7 @@ namespace HZH_Controls.Forms
...
@@ -273,7 +275,7 @@ namespace HZH_Controls.Forms
intX
+=
m_deviation
.
Value
.
X
;
intX
+=
m_deviation
.
Value
.
X
;
intY
+=
m_deviation
.
Value
.
Y
;
intY
+=
m_deviation
.
Value
.
Y
;
}
}
this
.
Location
=
new
Point
(
intX
,
intY
);
this
.
Location
=
ControlHelper
.
GetScreenLocation
(
currentScreen
,
intX
,
intY
);
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论