* UIIntegerUpDown: 增加是否可以双击输入属性

* UIDoubleUpDown: 增加是否可以双击输入属性
This commit is contained in:
Sunny 2022-09-16 22:42:25 +08:00
parent 797b565009
commit 20e6545a51
2 changed files with 12 additions and 0 deletions

View File

@ -24,6 +24,7 @@
* 2022-02-07: V3.1.0
* 2022-02-24: V3.1.1
* 2022-05-05: V3.1.8
* 2022-09-16: V3.2.4
******************************************************************************/
using System;
@ -294,11 +295,16 @@ namespace Sunny.UI
}
}
[DefaultValue(true)]
[Description("是否可以双击输入"), Category("SunnyUI")]
public bool Inputable { get; set; } = true;
private readonly UIEdit edit = new UIEdit();
private Color pnlColor;
private void pnlValue_DoubleClick(object sender, EventArgs e)
{
if (ReadOnly) return;
if (!Inputable) return;
edit.Left = 1;
edit.Top = (pnlValue.Height - edit.Height) / 2;

View File

@ -23,6 +23,7 @@
* 2022-02-07: V3.1.0
* 2022-02-24: V3.1.1
* 2022-05-05: V3.1.8
* 2022-09-16: V3.2.4
******************************************************************************/
using System;
@ -280,11 +281,16 @@ namespace Sunny.UI
}
}
[DefaultValue(true)]
[Description("是否可以双击输入"), Category("SunnyUI")]
public bool Inputable { get; set; } = true;
private readonly UIEdit edit = new UIEdit();
private Color pnlColor;
private void pnlValue_DoubleClick(object sender, EventArgs e)
{
if (ReadOnly) return;
if (!Inputable) return;
edit.Left = 1;
edit.Top = (pnlValue.Height - edit.Height) / 2;