Commit a73cf70d authored by 段廷瑞's avatar 段廷瑞

pref: 最小化/缩放按钮,焦点移除

parent 0f91d19b
...@@ -322,12 +322,15 @@ ...@@ -322,12 +322,15 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.btnMinimized.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(101)))), ((int)(((byte)(204))))); this.btnMinimized.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.btnMinimized.FlatAppearance.BorderSize = 0; this.btnMinimized.FlatAppearance.BorderSize = 0;
this.btnMinimized.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(130)))), ((int)(((byte)(220)))));
this.btnMinimized.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(130)))), ((int)(((byte)(220)))));
this.btnMinimized.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnMinimized.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMinimized.ForeColor = System.Drawing.Color.White; this.btnMinimized.ForeColor = System.Drawing.Color.White;
this.btnMinimized.Location = new System.Drawing.Point(611, 1); this.btnMinimized.Location = new System.Drawing.Point(611, 1);
this.btnMinimized.Name = "btnMinimized"; this.btnMinimized.Name = "btnMinimized";
this.btnMinimized.Size = new System.Drawing.Size(24, 25); this.btnMinimized.Size = new System.Drawing.Size(24, 25);
this.btnMinimized.TabIndex = 3; this.btnMinimized.TabIndex = 3;
this.btnMinimized.TabStop = false;
this.btnMinimized.Text = ""; this.btnMinimized.Text = "";
this.btnMinimized.UseVisualStyleBackColor = false; this.btnMinimized.UseVisualStyleBackColor = false;
this.btnMinimized.Click += new System.EventHandler(this.btnMinimized_Click); this.btnMinimized.Click += new System.EventHandler(this.btnMinimized_Click);
...@@ -339,12 +342,15 @@ ...@@ -339,12 +342,15 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.btnMaximized.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(101)))), ((int)(((byte)(204))))); this.btnMaximized.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.btnMaximized.FlatAppearance.BorderSize = 0; this.btnMaximized.FlatAppearance.BorderSize = 0;
this.btnMaximized.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(130)))), ((int)(((byte)(220)))));
this.btnMaximized.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(130)))), ((int)(((byte)(220)))));
this.btnMaximized.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnMaximized.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMaximized.ForeColor = System.Drawing.Color.White; this.btnMaximized.ForeColor = System.Drawing.Color.White;
this.btnMaximized.Location = new System.Drawing.Point(637, 1); this.btnMaximized.Location = new System.Drawing.Point(637, 1);
this.btnMaximized.Name = "btnMaximized"; this.btnMaximized.Name = "btnMaximized";
this.btnMaximized.Size = new System.Drawing.Size(24, 25); this.btnMaximized.Size = new System.Drawing.Size(24, 25);
this.btnMaximized.TabIndex = 2; this.btnMaximized.TabIndex = 2;
this.btnMaximized.TabStop = false;
this.btnMaximized.Text = ""; this.btnMaximized.Text = "";
this.btnMaximized.UseVisualStyleBackColor = false; this.btnMaximized.UseVisualStyleBackColor = false;
this.btnMaximized.Click += new System.EventHandler(this.btnMaximized_Click); this.btnMaximized.Click += new System.EventHandler(this.btnMaximized_Click);
...@@ -356,12 +362,15 @@ ...@@ -356,12 +362,15 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.btnClosed.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(101)))), ((int)(((byte)(204))))); this.btnClosed.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.btnClosed.FlatAppearance.BorderSize = 0; this.btnClosed.FlatAppearance.BorderSize = 0;
this.btnClosed.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
this.btnClosed.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
this.btnClosed.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnClosed.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnClosed.ForeColor = System.Drawing.Color.White; this.btnClosed.ForeColor = System.Drawing.Color.White;
this.btnClosed.Location = new System.Drawing.Point(663, 1); this.btnClosed.Location = new System.Drawing.Point(663, 1);
this.btnClosed.Name = "btnClosed"; this.btnClosed.Name = "btnClosed";
this.btnClosed.Size = new System.Drawing.Size(24, 25); this.btnClosed.Size = new System.Drawing.Size(24, 25);
this.btnClosed.TabIndex = 4; this.btnClosed.TabIndex = 4;
this.btnClosed.TabStop = false;
this.btnClosed.Text = ""; this.btnClosed.Text = "";
this.btnClosed.UseVisualStyleBackColor = false; this.btnClosed.UseVisualStyleBackColor = false;
this.btnClosed.Click += new System.EventHandler(this.btnClosed_Click); this.btnClosed.Click += new System.EventHandler(this.btnClosed_Click);
......
...@@ -140,6 +140,7 @@ namespace Tools ...@@ -140,6 +140,7 @@ namespace Tools
private void btnClosed_Click(object sender, EventArgs e) private void btnClosed_Click(object sender, EventArgs e)
{ {
this.ActiveControl = null;
this.Exit(); this.Exit();
} }
private void btnMaximized_Click(object sender, EventArgs e) private void btnMaximized_Click(object sender, EventArgs e)
...@@ -152,6 +153,7 @@ namespace Tools ...@@ -152,6 +153,7 @@ namespace Tools
{ {
this.SetWinMaximized(); this.SetWinMaximized();
} }
this.ActiveControl = null;
this.btnMaximized.Invalidate(); this.btnMaximized.Invalidate();
//刷新Tab显示 //刷新Tab显示
this.RefreshTab(); this.RefreshTab();
...@@ -236,6 +238,7 @@ namespace Tools ...@@ -236,6 +238,7 @@ namespace Tools
private void btnMinimized_Click(object sender, EventArgs e) private void btnMinimized_Click(object sender, EventArgs e)
{ {
this.ActiveControl = null;
this.WindowState = FormWindowState.Minimized; this.WindowState = FormWindowState.Minimized;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment