* UIDoubleUpDown: 增加按钮字体图标的大小属性
* UIIntegerUpDown: 增加按钮字体图标的大小属性
This commit is contained in:
parent
76426019e3
commit
dc503f0eea
@ -31,7 +31,8 @@
|
|||||||
* 2023-03-24: V3.3.3 删除ForbidInput属性,使用Inputable属性
|
* 2023-03-24: V3.3.3 删除ForbidInput属性,使用Inputable属性
|
||||||
* 2023-12-28: V3.6.2 修复设置Style时按钮颜色不一致
|
* 2023-12-28: V3.6.2 修复设置Style时按钮颜色不一致
|
||||||
* 2024-08-27: V3.6.9 修改编辑框字体与显示字体一致
|
* 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;
|
using System;
|
||||||
@ -157,6 +158,14 @@ namespace Sunny.UI
|
|||||||
set => step = Math.Abs(value);
|
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)
|
private void btnAdd_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (ReadOnly) return;
|
if (ReadOnly) return;
|
||||||
|
4
SunnyUI/Controls/UIDoubleUpDown.designer.cs
generated
4
SunnyUI/Controls/UIDoubleUpDown.designer.cs
generated
@ -46,7 +46,7 @@
|
|||||||
btnDec.Padding = new System.Windows.Forms.Padding(26, 4, 0, 0);
|
btnDec.Padding = new System.Windows.Forms.Padding(26, 4, 0, 0);
|
||||||
btnDec.RadiusSides = UICornerRadiusSides.LeftTop | UICornerRadiusSides.LeftBottom;
|
btnDec.RadiusSides = UICornerRadiusSides.LeftTop | UICornerRadiusSides.LeftBottom;
|
||||||
btnDec.Size = new System.Drawing.Size(29, 29);
|
btnDec.Size = new System.Drawing.Size(29, 29);
|
||||||
btnDec.Symbol = 61544;
|
btnDec.Symbol = 361544;
|
||||||
btnDec.TabIndex = 0;
|
btnDec.TabIndex = 0;
|
||||||
btnDec.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
btnDec.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
||||||
btnDec.TipsText = null;
|
btnDec.TipsText = null;
|
||||||
@ -65,7 +65,7 @@
|
|||||||
btnAdd.Padding = new System.Windows.Forms.Padding(26, 3, 0, 0);
|
btnAdd.Padding = new System.Windows.Forms.Padding(26, 3, 0, 0);
|
||||||
btnAdd.RadiusSides = UICornerRadiusSides.RightTop | UICornerRadiusSides.RightBottom;
|
btnAdd.RadiusSides = UICornerRadiusSides.RightTop | UICornerRadiusSides.RightBottom;
|
||||||
btnAdd.Size = new System.Drawing.Size(29, 29);
|
btnAdd.Size = new System.Drawing.Size(29, 29);
|
||||||
btnAdd.Symbol = 61543;
|
btnAdd.Symbol = 361543;
|
||||||
btnAdd.TabIndex = 1;
|
btnAdd.TabIndex = 1;
|
||||||
btnAdd.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
btnAdd.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
||||||
btnAdd.TipsText = null;
|
btnAdd.TipsText = null;
|
||||||
|
@ -30,7 +30,8 @@
|
|||||||
* 2023-03-24: V3.3.3 删除ForbidInput属性,使用Inputable属性
|
* 2023-03-24: V3.3.3 删除ForbidInput属性,使用Inputable属性
|
||||||
* 2023-12-28: V3.6.2 修复设置Style时按钮颜色不一致
|
* 2023-12-28: V3.6.2 修复设置Style时按钮颜色不一致
|
||||||
* 2024-08-27: V3.6.9 修改编辑框字体与显示字体一致
|
* 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;
|
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")]
|
[Description("最大值"), Category("SunnyUI")]
|
||||||
[DefaultValue(int.MaxValue)]
|
[DefaultValue(int.MaxValue)]
|
||||||
public int Maximum
|
public int Maximum
|
||||||
|
4
SunnyUI/Controls/UIIntegerUpDown.designer.cs
generated
4
SunnyUI/Controls/UIIntegerUpDown.designer.cs
generated
@ -46,7 +46,7 @@
|
|||||||
btnDec.Padding = new System.Windows.Forms.Padding(26, 4, 0, 0);
|
btnDec.Padding = new System.Windows.Forms.Padding(26, 4, 0, 0);
|
||||||
btnDec.RadiusSides = UICornerRadiusSides.LeftTop | UICornerRadiusSides.LeftBottom;
|
btnDec.RadiusSides = UICornerRadiusSides.LeftTop | UICornerRadiusSides.LeftBottom;
|
||||||
btnDec.Size = new System.Drawing.Size(29, 29);
|
btnDec.Size = new System.Drawing.Size(29, 29);
|
||||||
btnDec.Symbol = 61544;
|
btnDec.Symbol = 361544;
|
||||||
btnDec.TabIndex = 0;
|
btnDec.TabIndex = 0;
|
||||||
btnDec.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
btnDec.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
||||||
btnDec.TipsText = null;
|
btnDec.TipsText = null;
|
||||||
@ -65,7 +65,7 @@
|
|||||||
btnAdd.Padding = new System.Windows.Forms.Padding(26, 3, 0, 0);
|
btnAdd.Padding = new System.Windows.Forms.Padding(26, 3, 0, 0);
|
||||||
btnAdd.RadiusSides = UICornerRadiusSides.RightTop | UICornerRadiusSides.RightBottom;
|
btnAdd.RadiusSides = UICornerRadiusSides.RightTop | UICornerRadiusSides.RightBottom;
|
||||||
btnAdd.Size = new System.Drawing.Size(29, 29);
|
btnAdd.Size = new System.Drawing.Size(29, 29);
|
||||||
btnAdd.Symbol = 61543;
|
btnAdd.Symbol = 361543;
|
||||||
btnAdd.TabIndex = 1;
|
btnAdd.TabIndex = 1;
|
||||||
btnAdd.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
btnAdd.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
||||||
btnAdd.TipsText = null;
|
btnAdd.TipsText = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user