private void initTransparentBoxes() { this.richTextBox1 = new ExtendedRichTextBox(); this.richTextBox2 = new ExtendedRichTextBox(); // // richTextBox1 // this.richTextBox1.BackColor = Color.White; this.richTextBox1.BorderStyle = BorderStyle.None; this.richTextBox1.Cursor = Cursors.Arrow; this.richTextBox1.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); this.richTextBox1.Location = new Point(30, 72); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.ReadOnly = true; this.richTextBox1.Size = new Size(360, 176); this.richTextBox1.TabIndex = 1; this.richTextBox1.TabStop = false; this.richTextBox1.Text = "Text"; this.richTextBox1.KeyDown += new KeyEventHandler(this.View_KeyDown); this.richTextBox1.GotFocus += new EventHandler(this.richTextBox1_GotFocus); // // richTextBox2 // this.richTextBox2.BackColor = Color.White; this.richTextBox2.BorderStyle = BorderStyle.None; this.richTextBox2.Cursor = Cursors.Arrow; this.richTextBox2.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); this.richTextBox2.Location = new Point(152, 72); this.richTextBox2.Name = "richTextBox2"; this.richTextBox2.ReadOnly = true; this.richTextBox2.Size = new Size(360, 176); this.richTextBox2.TabIndex = 7; this.richTextBox2.TabStop = false; this.richTextBox2.Text = "TextRight"; this.richTextBox2.Visible = false; this.richTextBox2.KeyDown += new KeyEventHandler(this.View_KeyDown); this.richTextBox2.GotFocus += new EventHandler(this.richTextBox1_GotFocus); this.Controls.Add(this.richTextBox1); this.Controls.Add(this.richTextBox2); }
private void InitializeSongPresenters() { _richTextBox1 = new ExtendedRichTextBox(); _richTextBox2 = new ExtendedRichTextBox(); // // richTextBox1 // _richTextBox1.BackColor = Color.White; _richTextBox1.BorderStyle = BorderStyle.None; _richTextBox1.Cursor = Cursors.Arrow; _richTextBox1.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); _richTextBox1.Name = "richTextBox1"; _richTextBox1.ReadOnly = true; _richTextBox1.TabIndex = 1; _richTextBox1.TabStop = false; _richTextBox1.Text = "Text"; _richTextBox1.KeyDown += OnKeyDown; _richTextBox1.GotFocus += HandlePresenterFocus; _richTextBox1.Anchor = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top; _richTextBox1.MouseEnter += PresenterMouseEnterHandler; _richTextBox1.MouseLeave += PresenterMouseLeaveHandler; // // richTextBox2 // _richTextBox2.BackColor = Color.White; _richTextBox2.BorderStyle = BorderStyle.None; _richTextBox2.Cursor = Cursors.Arrow; _richTextBox2.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); _richTextBox2.Name = "richTextBox2"; _richTextBox2.ReadOnly = true; _richTextBox2.TabIndex = 7; _richTextBox2.TabStop = false; _richTextBox2.Text = "TextRight"; _richTextBox2.Visible = false; _richTextBox2.KeyDown += OnKeyDown; _richTextBox2.GotFocus += HandlePresenterFocus; _richTextBox2.MouseEnter += PresenterMouseEnterHandler; _richTextBox2.MouseLeave += PresenterMouseLeaveHandler; Controls.Add(_richTextBox1); Controls.Add(_richTextBox2); }
private void initTransparentBoxes() { this.richTextBox1 = new ExtendedRichTextBox(); this.richTextBox2 = new ExtendedRichTextBox(); // // richTextBox1 // this.richTextBox1.BackColor = Color.White; this.richTextBox1.BorderStyle = BorderStyle.None; this.richTextBox1.Cursor = Cursors.Arrow; this.richTextBox1.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); // this.richTextBox1.Location = new Point(30, 72); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.ReadOnly = true; // this.richTextBox1.Size = new Size(360, 176); this.richTextBox1.TabIndex = 1; this.richTextBox1.TabStop = false; this.richTextBox1.Text = "Text"; this.richTextBox1.KeyDown += this.View_KeyDown; this.richTextBox1.GotFocus += this.richTextBox1_GotFocus; this.richTextBox1.Left = 12; this.richTextBox1.Top = this.panel1.Bottom + 8; this.richTextBox1.Width = this.Width - 24; this.richTextBox1.Height = this.Height - this.panel1.Bottom - 16; this.richTextBox1.Anchor = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right | AnchorStyles.Top; // // richTextBox2 // this.richTextBox2.BackColor = Color.White; this.richTextBox2.BorderStyle = BorderStyle.None; this.richTextBox2.Cursor = Cursors.Arrow; this.richTextBox2.Font = new Font("Microsoft Sans Serif", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); this.richTextBox2.Location = new Point(152, 72); this.richTextBox2.Name = "richTextBox2"; this.richTextBox2.ReadOnly = true; this.richTextBox2.Size = new Size(360, 176); this.richTextBox2.TabIndex = 7; this.richTextBox2.TabStop = false; this.richTextBox2.Text = "TextRight"; this.richTextBox2.Visible = false; this.richTextBox2.KeyDown += this.View_KeyDown; this.richTextBox2.GotFocus += this.richTextBox1_GotFocus; this.Controls.Add(this.richTextBox1); this.Controls.Add(this.richTextBox2); }