diff --git a/Bin/SunnyUI.dll b/Bin/SunnyUI.dll index 4afa7577..f27cde1b 100644 Binary files a/Bin/SunnyUI.dll and b/Bin/SunnyUI.dll differ diff --git a/Bin/SunnyUI.pdb b/Bin/SunnyUI.pdb index 77c5a2de..a98695dd 100644 Binary files a/Bin/SunnyUI.pdb and b/Bin/SunnyUI.pdb differ diff --git a/SunnyUI.Demo/Bin/SunnyUI.dll b/SunnyUI.Demo/Bin/SunnyUI.dll index 4afa7577..f27cde1b 100644 Binary files a/SunnyUI.Demo/Bin/SunnyUI.dll and b/SunnyUI.Demo/Bin/SunnyUI.dll differ diff --git a/SunnyUI/Controls/UIImageListBox.cs b/SunnyUI/Controls/UIImageListBox.cs index a2454c63..3c5798a2 100644 --- a/SunnyUI/Controls/UIImageListBox.cs +++ b/SunnyUI/Controls/UIImageListBox.cs @@ -63,6 +63,12 @@ namespace Sunny.UI listbox.BeforeDrawItem += Listbox_BeforeDrawItem; } + protected override void OnFontChanged(EventArgs e) + { + base.OnFontChanged(e); + listbox.Font = Font; + } + protected override void OnSizeChanged(EventArgs e) { base.OnSizeChanged(e); @@ -162,6 +168,7 @@ namespace Sunny.UI private int LastCount; private int lastBarValue = -1; + private void Bar_ValueChanged(object sender, EventArgs e) { if (listbox != null) diff --git a/SunnyUI/Controls/UIListBox.cs b/SunnyUI/Controls/UIListBox.cs index c7a1abc4..c4f43a11 100644 --- a/SunnyUI/Controls/UIListBox.cs +++ b/SunnyUI/Controls/UIListBox.cs @@ -63,6 +63,12 @@ namespace Sunny.UI listbox.BeforeDrawItem += Listbox_BeforeDrawItem; } + protected override void OnFontChanged(EventArgs e) + { + base.OnFontChanged(e); + listbox.Font = Font; + } + protected override void OnSizeChanged(EventArgs e) { base.OnSizeChanged(e);