* UIIntegerUpDown, UIDoubleUpDown:增加字体调整

This commit is contained in:
Sunny 2020-08-14 20:52:29 +08:00
parent 9c469275a3
commit 329199319e
7 changed files with 13 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -166,7 +166,7 @@
//
// uiDoubleUpDown1
//
this.uiDoubleUpDown1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.uiDoubleUpDown1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiDoubleUpDown1.Location = new System.Drawing.Point(388, 132);
this.uiDoubleUpDown1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiDoubleUpDown1.MinimumSize = new System.Drawing.Size(100, 0);

View File

@ -37,6 +37,12 @@ namespace Sunny.UI
ShowText = false;
}
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
if (pnlValue != null) pnlValue.Font = Font;
}
public event OnValueChanged ValueChanged;
private double _value = 0;

View File

@ -55,6 +55,12 @@ namespace Sunny.UI
}
}
protected override void OnFontChanged(EventArgs e)
{
base.OnFontChanged(e);
if (pnlValue != null) pnlValue.Font = Font;
}
private int step = 1;
[DefaultValue(1)]