* UIRadioButtonGroup,UICheckBoxGroup:修正调整ItemSize无效的Bug
This commit is contained in:
parent
0d19046f76
commit
e605818e31
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.
@ -110,6 +110,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
UICheckBox box = new UICheckBox
|
UICheckBox box = new UICheckBox
|
||||||
{
|
{
|
||||||
|
BackColor = Color.Transparent,
|
||||||
Font = Font,
|
Font = Font,
|
||||||
Parent = this,
|
Parent = this,
|
||||||
Tag = i,
|
Tag = i,
|
||||||
@ -132,6 +133,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
boxes[i].Left = startX + ItemSize.Width * columnIndex + ColumnInterval * columnIndex;
|
boxes[i].Left = startX + ItemSize.Width * columnIndex + ColumnInterval * columnIndex;
|
||||||
boxes[i].Top = startY + ItemSize.Height * rowIndex + RowInterval * rowIndex;
|
boxes[i].Top = startY + ItemSize.Height * rowIndex + RowInterval * rowIndex;
|
||||||
|
boxes[i].Size = ItemSize;
|
||||||
boxes[i].Show();
|
boxes[i].Show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,6 +94,7 @@ namespace Sunny.UI
|
|||||||
{
|
{
|
||||||
UIRadioButton button = new UIRadioButton
|
UIRadioButton button = new UIRadioButton
|
||||||
{
|
{
|
||||||
|
BackColor = Color.Transparent,
|
||||||
Font = Font,
|
Font = Font,
|
||||||
Parent = this,
|
Parent = this,
|
||||||
Tag = i,
|
Tag = i,
|
||||||
@ -116,6 +117,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
buttons[i].Left = startX + ItemSize.Width * columnIndex + ColumnInterval * columnIndex;
|
buttons[i].Left = startX + ItemSize.Width * columnIndex + ColumnInterval * columnIndex;
|
||||||
buttons[i].Top = startY + ItemSize.Height * rowIndex + RowInterval * rowIndex;
|
buttons[i].Top = startY + ItemSize.Height * rowIndex + RowInterval * rowIndex;
|
||||||
|
buttons[i].Size = ItemSize;
|
||||||
buttons[i].Show();
|
buttons[i].Show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user