* UIDoubleUpDown: 增加按钮字体图标的大小属性

* UIIntegerUpDown: 增加按钮字体图标的大小属性
This commit is contained in:
Sunny 2025-03-16 13:20:12 +08:00
parent 76426019e3
commit dc503f0eea
4 changed files with 24 additions and 6 deletions

View File

@ -31,7 +31,8 @@
* 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
* 2024-08-27: V3.7.0
* 2025-03-16: V3.8.2
******************************************************************************/
using System;
@ -157,6 +158,14 @@ namespace Sunny.UI
set => step = Math.Abs(value);
}
[DefaultValue(24)]
[Description("按钮字体图标大小"), Category("SunnyUI")]
public int ButtonSymbolSize
{
get => btnDec.SymbolSize;
set => btnDec.SymbolSize = btnAdd.SymbolSize = value;
}
private void btnAdd_Click(object sender, EventArgs e)
{
if (ReadOnly) return;

View File

@ -46,7 +46,7 @@
btnDec.Padding = new System.Windows.Forms.Padding(26, 4, 0, 0);
btnDec.RadiusSides = UICornerRadiusSides.LeftTop | UICornerRadiusSides.LeftBottom;
btnDec.Size = new System.Drawing.Size(29, 29);
btnDec.Symbol = 61544;
btnDec.Symbol = 361544;
btnDec.TabIndex = 0;
btnDec.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
btnDec.TipsText = null;
@ -65,7 +65,7 @@
btnAdd.Padding = new System.Windows.Forms.Padding(26, 3, 0, 0);
btnAdd.RadiusSides = UICornerRadiusSides.RightTop | UICornerRadiusSides.RightBottom;
btnAdd.Size = new System.Drawing.Size(29, 29);
btnAdd.Symbol = 61543;
btnAdd.Symbol = 361543;
btnAdd.TabIndex = 1;
btnAdd.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
btnAdd.TipsText = null;

View File

@ -30,7 +30,8 @@
* 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
* 2024-08-27: V3.7.0
* 2025-03-16: V3.8.2
******************************************************************************/
using System;
@ -164,6 +165,14 @@ namespace Sunny.UI
}
}
[DefaultValue(24)]
[Description("按钮字体图标大小"), Category("SunnyUI")]
public int ButtonSymbolSize
{
get => btnDec.SymbolSize;
set => btnDec.SymbolSize = btnAdd.SymbolSize = value;
}
[Description("最大值"), Category("SunnyUI")]
[DefaultValue(int.MaxValue)]
public int Maximum

View File

@ -46,7 +46,7 @@
btnDec.Padding = new System.Windows.Forms.Padding(26, 4, 0, 0);
btnDec.RadiusSides = UICornerRadiusSides.LeftTop | UICornerRadiusSides.LeftBottom;
btnDec.Size = new System.Drawing.Size(29, 29);
btnDec.Symbol = 61544;
btnDec.Symbol = 361544;
btnDec.TabIndex = 0;
btnDec.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
btnDec.TipsText = null;
@ -65,7 +65,7 @@
btnAdd.Padding = new System.Windows.Forms.Padding(26, 3, 0, 0);
btnAdd.RadiusSides = UICornerRadiusSides.RightTop | UICornerRadiusSides.RightBottom;
btnAdd.Size = new System.Drawing.Size(29, 29);
btnAdd.Symbol = 61543;
btnAdd.Symbol = 361543;
btnAdd.TabIndex = 1;
btnAdd.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
btnAdd.TipsText = null;