diff --git a/Bin/SunnyUI.dll b/Bin/SunnyUI.dll index 2bd43d8d..b6fea417 100644 Binary files a/Bin/SunnyUI.dll and b/Bin/SunnyUI.dll differ diff --git a/Bin/SunnyUI.pdb b/Bin/SunnyUI.pdb index c334cc93..6f2da01d 100644 Binary files a/Bin/SunnyUI.pdb and b/Bin/SunnyUI.pdb differ diff --git a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe index 8b59a504..f20f3174 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.Demo.exe and b/SunnyUI.Demo/Bin/SunnyUI.Demo.exe differ diff --git a/SunnyUI.Demo/Bin/SunnyUI.dll b/SunnyUI.Demo/Bin/SunnyUI.dll index 2bd43d8d..b6fea417 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.dll and b/SunnyUI.Demo/Bin/SunnyUI.dll differ diff --git a/SunnyUI.Demo/Controls/FTextBox.Designer.cs b/SunnyUI.Demo/Controls/FTextBox.Designer.cs index 0576ada8..2fdfbf9d 100644 --- a/SunnyUI.Demo/Controls/FTextBox.Designer.cs +++ b/SunnyUI.Demo/Controls/FTextBox.Designer.cs @@ -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); diff --git a/SunnyUI/Controls/UIDoubleUpDown.cs b/SunnyUI/Controls/UIDoubleUpDown.cs index 17be9ac8..91c4cce1 100644 --- a/SunnyUI/Controls/UIDoubleUpDown.cs +++ b/SunnyUI/Controls/UIDoubleUpDown.cs @@ -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; diff --git a/SunnyUI/Controls/UIIntegerUpDown.cs b/SunnyUI/Controls/UIIntegerUpDown.cs index 68ee230d..cf2ac271 100644 --- a/SunnyUI/Controls/UIIntegerUpDown.cs +++ b/SunnyUI/Controls/UIIntegerUpDown.cs @@ -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)]