UIListBox可调整字体大小
This commit is contained in:
parent
e80cbc4a10
commit
237972ee8d
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
BIN
Bin/SunnyUI.pdb
BIN
Bin/SunnyUI.pdb
Binary file not shown.
Binary file not shown.
@ -63,6 +63,12 @@ namespace Sunny.UI
|
|||||||
listbox.BeforeDrawItem += Listbox_BeforeDrawItem;
|
listbox.BeforeDrawItem += Listbox_BeforeDrawItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnFontChanged(EventArgs e)
|
||||||
|
{
|
||||||
|
base.OnFontChanged(e);
|
||||||
|
listbox.Font = Font;
|
||||||
|
}
|
||||||
|
|
||||||
protected override void OnSizeChanged(EventArgs e)
|
protected override void OnSizeChanged(EventArgs e)
|
||||||
{
|
{
|
||||||
base.OnSizeChanged(e);
|
base.OnSizeChanged(e);
|
||||||
@ -162,6 +168,7 @@ namespace Sunny.UI
|
|||||||
private int LastCount;
|
private int LastCount;
|
||||||
|
|
||||||
private int lastBarValue = -1;
|
private int lastBarValue = -1;
|
||||||
|
|
||||||
private void Bar_ValueChanged(object sender, EventArgs e)
|
private void Bar_ValueChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (listbox != null)
|
if (listbox != null)
|
||||||
|
@ -63,6 +63,12 @@ namespace Sunny.UI
|
|||||||
listbox.BeforeDrawItem += Listbox_BeforeDrawItem;
|
listbox.BeforeDrawItem += Listbox_BeforeDrawItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnFontChanged(EventArgs e)
|
||||||
|
{
|
||||||
|
base.OnFontChanged(e);
|
||||||
|
listbox.Font = Font;
|
||||||
|
}
|
||||||
|
|
||||||
protected override void OnSizeChanged(EventArgs e)
|
protected override void OnSizeChanged(EventArgs e)
|
||||||
{
|
{
|
||||||
base.OnSizeChanged(e);
|
base.OnSizeChanged(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user