* UIInputForm: 修复调用时自定义主题参数不起作用的问题
This commit is contained in:
parent
c4ce201513
commit
137258ce46
8
SunnyUI/Forms/UIInputForm.Designer.cs
generated
8
SunnyUI/Forms/UIInputForm.Designer.cs
generated
@ -38,17 +38,18 @@
|
||||
pnlBtm.Location = new System.Drawing.Point(0, 135);
|
||||
pnlBtm.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom;
|
||||
pnlBtm.Size = new System.Drawing.Size(473, 55);
|
||||
pnlBtm.Style = UIStyle.Custom;
|
||||
pnlBtm.TabIndex = 2;
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
btnCancel.Location = new System.Drawing.Point(343, 4);
|
||||
btnCancel.Symbol = 361453;
|
||||
btnCancel.Style = UIStyle.Custom;
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
btnOK.Location = new System.Drawing.Point(228, 4);
|
||||
btnOK.Symbol = 361452;
|
||||
btnOK.Style = UIStyle.Custom;
|
||||
//
|
||||
// label
|
||||
//
|
||||
@ -59,6 +60,7 @@
|
||||
label.Location = new System.Drawing.Point(28, 57);
|
||||
label.Name = "label";
|
||||
label.Size = new System.Drawing.Size(215, 16);
|
||||
label.Style = UIStyle.Custom;
|
||||
label.TabIndex = 1;
|
||||
label.Text = "请在下方编辑框中输入数值:";
|
||||
label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
@ -75,6 +77,7 @@
|
||||
edit.RadiusSides = UICornerRadiusSides.None;
|
||||
edit.ShowText = false;
|
||||
edit.Size = new System.Drawing.Size(415, 29);
|
||||
edit.Style = UIStyle.Custom;
|
||||
edit.TabIndex = 0;
|
||||
edit.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
edit.Watermark = "";
|
||||
@ -87,6 +90,7 @@
|
||||
Controls.Add(label);
|
||||
Name = "UIInputForm";
|
||||
Padding = new System.Windows.Forms.Padding(0, 35, 0, 0);
|
||||
Style = UIStyle.Custom;
|
||||
Text = "输入";
|
||||
ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 473, 182);
|
||||
Shown += UIInputForm_Shown;
|
||||
|
@ -17,6 +17,7 @@
|
||||
* 创建日期: 2020-01-01
|
||||
*
|
||||
* 2020-01-01: V2.2.0 增加文件说明
|
||||
* 2024-05-30: V3.6.6 修复调用时自定义主题参数不起作用的问题
|
||||
******************************************************************************/
|
||||
|
||||
namespace Sunny.UI
|
||||
@ -67,5 +68,39 @@ namespace Sunny.UI
|
||||
{
|
||||
edit.SelectAll();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置主题样式
|
||||
/// </summary>
|
||||
/// <param name="uiColor">主题样式</param>
|
||||
public override void SetStyleColor(UIBaseStyle uiColor)
|
||||
{
|
||||
base.SetStyleColor(uiColor);
|
||||
|
||||
if (btnCancel != null)
|
||||
{
|
||||
btnCancel.SetStyleColor(uiColor);
|
||||
}
|
||||
|
||||
if (label != null)
|
||||
{
|
||||
label.SetStyleColor(uiColor);
|
||||
}
|
||||
|
||||
if (btnOK != null)
|
||||
{
|
||||
btnOK.SetStyleColor(uiColor);
|
||||
}
|
||||
|
||||
if (pnlBtm != null)
|
||||
{
|
||||
pnlBtm.SetStyleColor(uiColor);
|
||||
}
|
||||
|
||||
if (edit != null)
|
||||
{
|
||||
edit.SetStyleColor(uiColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user