From c2b4db9fc7efe6c022084fd507f3fc410717a5a7 Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 27 Aug 2024 14:07:21 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIDoubleUpDown:=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8A=A0=E6=8C=89=E9=92=AE=E5=AD=97=E4=BD=93=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E7=9A=84=E5=81=8F=E7=A7=BB=E4=BD=8D=E7=BD=AE=20*=20UIIntegerUp?= =?UTF-8?q?Down:=20=E5=A2=9E=E5=8A=A0=E5=8A=A0=E6=8C=89=E9=92=AE=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E5=9B=BE=E6=A0=87=E7=9A=84=E5=81=8F=E7=A7=BB=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/UIDoubleUpDown.cs | 23 +++++++++++++++++++++++ SunnyUI/Controls/UIIntegerUpDown.cs | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/SunnyUI/Controls/UIDoubleUpDown.cs b/SunnyUI/Controls/UIDoubleUpDown.cs index fd1f7157..d4b27e9f 100644 --- a/SunnyUI/Controls/UIDoubleUpDown.cs +++ b/SunnyUI/Controls/UIDoubleUpDown.cs @@ -31,6 +31,7 @@ * 2023-03-24: V3.3.3 删除ForbidInput属性,使用Inputable属性 * 2023-12-28: V3.6.2 修复设置Style时按钮颜色不一致 * 2024-08-27: V3.6.9 修改编辑框字体与显示字体一致 + * 2024-08-27: V3.7.0 增加加按钮字体图标的偏移位置 ******************************************************************************/ using System; @@ -339,5 +340,27 @@ namespace Sunny.UI } public override Color ForeColor { get => pnlValue.ForeColor; set => pnlValue.ForeColor = value; } + + /// + /// 加按钮字体图标的偏移位置 + /// + [DefaultValue(typeof(Point), "0, 0")] + [Description("加按钮字体图标的偏移位置"), Category("SunnyUI")] + public Point AddSymbolOffset + { + get => btnAdd.SymbolOffset; + set => btnAdd.SymbolOffset = value; + } + + /// + /// 减按钮字体图标的偏移位置 + /// + [DefaultValue(typeof(Point), "0, 0")] + [Description("减按钮字体图标的偏移位置"), Category("SunnyUI")] + public Point DecSymbolOffset + { + get => btnDec.SymbolOffset; + set => btnDec.SymbolOffset = value; + } } } \ No newline at end of file diff --git a/SunnyUI/Controls/UIIntegerUpDown.cs b/SunnyUI/Controls/UIIntegerUpDown.cs index 02c929ce..b8eb8cf4 100644 --- a/SunnyUI/Controls/UIIntegerUpDown.cs +++ b/SunnyUI/Controls/UIIntegerUpDown.cs @@ -30,6 +30,7 @@ * 2023-03-24: V3.3.3 删除ForbidInput属性,使用Inputable属性 * 2023-12-28: V3.6.2 修复设置Style时按钮颜色不一致 * 2024-08-27: V3.6.9 修改编辑框字体与显示字体一致 + * 2024-08-27: V3.7.0 增加加按钮字体图标的偏移位置 ******************************************************************************/ using System; @@ -320,5 +321,27 @@ namespace Sunny.UI } } public override Color ForeColor { get => pnlValue.ForeColor; set => pnlValue.ForeColor = value; } + + /// + /// 加按钮字体图标的偏移位置 + /// + [DefaultValue(typeof(Point), "0, 0")] + [Description("加按钮字体图标的偏移位置"), Category("SunnyUI")] + public Point AddSymbolOffset + { + get => btnAdd.SymbolOffset; + set => btnAdd.SymbolOffset = value; + } + + /// + /// 减按钮字体图标的偏移位置 + /// + [DefaultValue(typeof(Point), "0, 0")] + [Description("减按钮字体图标的偏移位置"), Category("SunnyUI")] + public Point DecSymbolOffset + { + get => btnDec.SymbolOffset; + set => btnDec.SymbolOffset = value; + } } } \ No newline at end of file