* UIForm,UIPage:更改新建窗体时主题未设置的问题

This commit is contained in:
Sunny 2020-06-05 22:16:56 +08:00
parent f9fa9baca3
commit 96c318a979
8 changed files with 13 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1085,6 +1085,11 @@ namespace Sunny.UI
public string CloseAskString { get; set; } public string CloseAskString { get; set; }
private void UIForm_Shown(object sender, EventArgs e)
{
SetStyle(UIStyles.Style);
}
private FormWindowState windowState = FormWindowState.Normal; private FormWindowState windowState = FormWindowState.Normal;
public new FormWindowState WindowState public new FormWindowState WindowState

View File

@ -39,6 +39,7 @@
this.Name = "UIForm"; this.Name = "UIForm";
this.Text = "UIForm"; this.Text = "UIForm";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.UIForm_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.UIForm_FormClosing);
this.Shown += new System.EventHandler(this.UIForm_Shown);
this.ResumeLayout(false); this.ResumeLayout(false);
} }

View File

@ -34,7 +34,6 @@
// //
// UIPage // UIPage
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(802, 460); this.ClientSize = new System.Drawing.Size(802, 460);
this.DoubleBuffered = true; this.DoubleBuffered = true;
@ -46,7 +45,7 @@
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "UIPage"; this.Text = "UIPage";
this.TopLevel = false; this.Shown += new System.EventHandler(this.UIPage_Shown);
this.ResumeLayout(false); this.ResumeLayout(false);
} }

View File

@ -234,5 +234,10 @@ namespace Sunny.UI
AfterSetForeColor(ForeColor); AfterSetForeColor(ForeColor);
_style = UIStyle.Custom; _style = UIStyle.Custom;
} }
private void UIPage_Shown(object sender, EventArgs e)
{
SetStyle(UIStyles.Style);
}
} }
} }

View File

@ -3,6 +3,7 @@
2020.06.04 2020.06.04
+ UIRichTextBox新增 + UIRichTextBox新增
* UITextBox完善TextBox的基本方法和函数 * UITextBox完善TextBox的基本方法和函数
* UIForm,UIPage更改新建窗体时主题未设置的问题
2020.06.04 2020.06.04
+ UIBattery 新增 + UIBattery 新增