Added correct indentations in customRTB

This commit is contained in:
Sigmanor 2017-05-13 20:52:02 +03:00
parent 5bcaefc02b
commit 276831d7b9
2 changed files with 9 additions and 9 deletions

View file

@ -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);

View file

@ -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();
}