From 276831d7b98452d34fe9d72b088ae8733dd66963 Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Sat, 13 May 2017 20:52:02 +0300 Subject: [PATCH] Added correct indentations in customRTB --- Crypto Notepad/Form1.Designer.cs | 7 ++++--- Crypto Notepad/Form1.cs | 11 +++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Crypto Notepad/Form1.Designer.cs b/Crypto Notepad/Form1.Designer.cs index 8619ce3..e3df925 100644 --- a/Crypto Notepad/Form1.Designer.cs +++ b/Crypto Notepad/Form1.Designer.cs @@ -767,6 +767,7 @@ public void InitializeComponent() // this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); + this.panel2.BackColor = System.Drawing.SystemColors.ButtonFace; this.panel2.Controls.Add(this.pictureBox12); this.panel2.Controls.Add(this.pictureBox13); this.panel2.Controls.Add(this.pictureBox5); @@ -779,7 +780,7 @@ public void InitializeComponent() this.panel2.Controls.Add(this.pictureBox6); this.panel2.Controls.Add(this.pictureBox4); this.panel2.Controls.Add(this.pictureBox3); - this.panel2.Location = new System.Drawing.Point(-1, 25); + this.panel2.Location = new System.Drawing.Point(-1, 24); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(537, 23); this.panel2.TabIndex = 14; @@ -794,9 +795,9 @@ public void InitializeComponent() this.customRTB.ContextMenuStrip = this.contextMenuStrip1; this.customRTB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.customRTB.ForeColor = System.Drawing.SystemColors.WindowText; - this.customRTB.Location = new System.Drawing.Point(0, 48); + this.customRTB.Location = new System.Drawing.Point(6, 52); this.customRTB.Name = "customRTB"; - this.customRTB.Size = new System.Drawing.Size(535, 252); + this.customRTB.Size = new System.Drawing.Size(523, 247); this.customRTB.TabIndex = 10; this.customRTB.Text = ""; this.customRTB.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.customRTB_LinkClicked); diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index 65cae5f..b3dde5b 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -283,10 +283,9 @@ private void MainWindow_Load(object sender, EventArgs e) customRTB.Font = new Font(ps.RichTextFont, ps.RichTextSize); customRTB.ForeColor = ps.RichForeColor; customRTB.BackColor = ps.RichBackColor; + this.BackColor = ps.RichBackColor; wordWrapToolStripMenuItem.Checked = ps.MenuWrap; customRTB.WordWrap = ps.RichWrap; - customRTB.SelectionIndent += 6; - customRTB.SelectionRightIndent += 7; panel2.Visible = ps.ShowToolbar; if (ps.ShowToolbar == false) @@ -295,7 +294,7 @@ private void MainWindow_Load(object sender, EventArgs e) int h = customRTB.Height; h += 23; customRTB.Height = h; - customRTB.Location = new Point(0, 25); + customRTB.Location = new Point(6, 29); } if (ps.ShowToolbar == true) @@ -654,7 +653,7 @@ private void MainWindow_Activated(object sender, EventArgs e) int h = customRTB.Height; h += 23; customRTB.Height = h; - customRTB.Location = new Point(0, 25); + customRTB.Location = new Point(6, 29); } if (ps.ShowToolbar == true && panel2.Visible == false) @@ -663,7 +662,7 @@ private void MainWindow_Activated(object sender, EventArgs e) int h = customRTB.Height; h -= 23; customRTB.Height = h; - customRTB.Location = new Point(0, 48); + customRTB.Location = new Point(6, 52); } } @@ -803,7 +802,7 @@ private void pictureBox12_Click(object sender, EventArgs e) int h = customRTB.Height; h += 23; customRTB.Height = h; - customRTB.Location = new Point(0, 25); + customRTB.Location = new Point(6, 29); ps.ShowToolbar = false; ps.Save(); }