* UITextBox: 修改显示按钮时Tips小红点的位置

This commit is contained in:
Sunny 2023-12-18 23:24:22 +08:00
parent 0019e7784d
commit 13ea135f89

View File

@ -56,6 +56,7 @@
* 2023-10-26: V3.5.1 SymbolRotate * 2023-10-26: V3.5.1 SymbolRotate
* 2023-11-16: V3.5.2 * 2023-11-16: V3.5.2
* 2023-12-18: V3.6.2 * 2023-12-18: V3.6.2
* 2023-12-18: V3.6.2 Tips小红点的位置
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -682,11 +683,6 @@ namespace Sunny.UI
//{ //{
SizeChange(); SizeChange();
//} //}
if (tipsBtn != null)
{
tipsBtn.Location = new System.Drawing.Point(Width - 8, 2);
}
} }
public void SetScrollInfo() public void SetScrollInfo()
@ -758,6 +754,14 @@ namespace Sunny.UI
{ {
edit.Width = edit.Width - btn.Width - 3; edit.Width = edit.Width - btn.Width - 3;
} }
if (tipsBtn != null)
{
if (ShowButton)
tipsBtn.Location = new System.Drawing.Point(Width - btn.Width - 10, 2);
else
tipsBtn.Location = new System.Drawing.Point(Width - 8, 2);
}
} }
else else
{ {