mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Fixed glitch with line numbers
This commit is contained in:
parent
57b244ae95
commit
9a14601f66
2 changed files with 10 additions and 8 deletions
16
Crypto Notepad/MainForm.Designer.cs
generated
16
Crypto Notepad/MainForm.Designer.cs
generated
|
|
@ -68,6 +68,7 @@ public void InitializeComponent()
|
|||
this.AboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.DebugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.MainVariablesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.insertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.EditorMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.UndoEditorMenuStrip = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.RedoEditorMenuStrip = new System.Windows.Forms.ToolStripMenuItem();
|
||||
|
|
@ -102,7 +103,6 @@ public void InitializeComponent()
|
|||
this.OpenToolbarButton = new System.Windows.Forms.PictureBox();
|
||||
this.CustomRTB = new Crypto_Notepad.CustomRichTextBox();
|
||||
this.LineNumbers_For_RichTextBox = new LineNumbers.LineNumbers_For_RichTextBox();
|
||||
this.insertToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.MainMenu.SuspendLayout();
|
||||
this.EditorMenuStrip.SuspendLayout();
|
||||
this.SearchPanel.SuspendLayout();
|
||||
|
|
@ -456,6 +456,13 @@ public void InitializeComponent()
|
|||
this.MainVariablesToolStripMenuItem.Text = "Main variables";
|
||||
this.MainVariablesToolStripMenuItem.Click += new System.EventHandler(this.MainVariablesToolStripMenuItem_Click);
|
||||
//
|
||||
// insertToolStripMenuItem
|
||||
//
|
||||
this.insertToolStripMenuItem.Name = "insertToolStripMenuItem";
|
||||
this.insertToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
|
||||
this.insertToolStripMenuItem.Text = "Insert";
|
||||
this.insertToolStripMenuItem.Visible = false;
|
||||
//
|
||||
// EditorMenuStrip
|
||||
//
|
||||
this.EditorMenuStrip.BackColor = System.Drawing.SystemColors.Control;
|
||||
|
|
@ -890,13 +897,6 @@ public void InitializeComponent()
|
|||
this.LineNumbers_For_RichTextBox.Size = new System.Drawing.Size(18, 244);
|
||||
this.LineNumbers_For_RichTextBox.TabIndex = 15;
|
||||
//
|
||||
// insertToolStripMenuItem
|
||||
//
|
||||
this.insertToolStripMenuItem.Name = "insertToolStripMenuItem";
|
||||
this.insertToolStripMenuItem.Size = new System.Drawing.Size(213, 22);
|
||||
this.insertToolStripMenuItem.Text = "Insert";
|
||||
this.insertToolStripMenuItem.Visible = false;
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
|
|
|||
|
|
@ -657,6 +657,7 @@ private void MainWindow_Activated(object sender, EventArgs e)
|
|||
ToolbarPanel.BorderStyle = BorderStyle.None;
|
||||
}
|
||||
|
||||
LineNumbers_For_RichTextBox.Refresh();
|
||||
}
|
||||
|
||||
if (PublicVar.keyChanged)
|
||||
|
|
@ -804,6 +805,7 @@ private void MainWindow_Load(object sender, EventArgs e)
|
|||
|
||||
Size = ps.WindowSize;
|
||||
WindowState = ps.WindowState;
|
||||
LineNumbers_For_RichTextBox.Refresh();
|
||||
|
||||
#if DEBUG
|
||||
DebugToolStripMenuItem.Visible = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue