415 lines
17 KiB
C#
415 lines
17 KiB
C#
namespace TestWndProc
|
|
{
|
|
partial class MyPanel
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Component Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
this.btnBoldOn = new System.Windows.Forms.Button();
|
|
this.btnBoldOff = new System.Windows.Forms.Button();
|
|
this.btnLinkOff = new System.Windows.Forms.Button();
|
|
this.btnLinkOn = new System.Windows.Forms.Button();
|
|
this.tbSelRTF = new System.Windows.Forms.TextBox();
|
|
this.lblFind = new System.Windows.Forms.Label();
|
|
this.nudStart = new System.Windows.Forms.NumericUpDown();
|
|
this.nudLength = new System.Windows.Forms.NumericUpDown();
|
|
this.dgv = new System.Windows.Forms.DataGridView();
|
|
this.btnFindAllLinks = new System.Windows.Forms.Button();
|
|
this.tbSelText = new System.Windows.Forms.TextBox();
|
|
this.btnUpdateSel = new System.Windows.Forms.Button();
|
|
this.cbProcess = new System.Windows.Forms.CheckBox();
|
|
this.lbTbSel = new System.Windows.Forms.Label();
|
|
this.btnRefreshText = new System.Windows.Forms.Button();
|
|
this.btnReplaceSelection = new System.Windows.Forms.Button();
|
|
this.lblWith = new System.Windows.Forms.Label();
|
|
this.tbWith = new System.Windows.Forms.TextBox();
|
|
this.tbSendKeys = new System.Windows.Forms.TextBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.lblRangeStatus = new System.Windows.Forms.Label();
|
|
this.btnPG = new System.Windows.Forms.Button();
|
|
this.tbRTF = new TestWndProc.MyTextBox(this.components);
|
|
this.myRTB1 = new TestWndProc.MyRTB(this.components);
|
|
this.btnSelHngIndent = new System.Windows.Forms.Button();
|
|
((System.ComponentModel.ISupportInitialize)(this.nudStart)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nudLength)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.dgv)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// btnBoldOn
|
|
//
|
|
this.btnBoldOn.Location = new System.Drawing.Point(4, 16);
|
|
this.btnBoldOn.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btnBoldOn.Name = "btnBoldOn";
|
|
this.btnBoldOn.Size = new System.Drawing.Size(81, 28);
|
|
this.btnBoldOn.TabIndex = 1;
|
|
this.btnBoldOn.Text = "Bold On";
|
|
this.btnBoldOn.UseVisualStyleBackColor = true;
|
|
this.btnBoldOn.Click += new System.EventHandler(this.btnBoldOn_Click);
|
|
//
|
|
// btnBoldOff
|
|
//
|
|
this.btnBoldOff.Location = new System.Drawing.Point(93, 16);
|
|
this.btnBoldOff.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btnBoldOff.Name = "btnBoldOff";
|
|
this.btnBoldOff.Size = new System.Drawing.Size(83, 28);
|
|
this.btnBoldOff.TabIndex = 2;
|
|
this.btnBoldOff.Text = "Bold Off";
|
|
this.btnBoldOff.UseVisualStyleBackColor = true;
|
|
this.btnBoldOff.Click += new System.EventHandler(this.btnBoldOff_Click);
|
|
//
|
|
// btnLinkOff
|
|
//
|
|
this.btnLinkOff.Location = new System.Drawing.Point(269, 16);
|
|
this.btnLinkOff.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btnLinkOff.Name = "btnLinkOff";
|
|
this.btnLinkOff.Size = new System.Drawing.Size(71, 28);
|
|
this.btnLinkOff.TabIndex = 5;
|
|
this.btnLinkOff.Text = "Link Off";
|
|
this.btnLinkOff.UseVisualStyleBackColor = true;
|
|
this.btnLinkOff.Click += new System.EventHandler(this.btnLinkOff_Click);
|
|
//
|
|
// btnLinkOn
|
|
//
|
|
this.btnLinkOn.Location = new System.Drawing.Point(184, 16);
|
|
this.btnLinkOn.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btnLinkOn.Name = "btnLinkOn";
|
|
this.btnLinkOn.Size = new System.Drawing.Size(77, 28);
|
|
this.btnLinkOn.TabIndex = 4;
|
|
this.btnLinkOn.Text = "Link On";
|
|
this.btnLinkOn.UseVisualStyleBackColor = true;
|
|
this.btnLinkOn.Click += new System.EventHandler(this.btnLinkOn_Click);
|
|
//
|
|
// tbSelRTF
|
|
//
|
|
this.tbSelRTF.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.tbSelRTF.Location = new System.Drawing.Point(4, 370);
|
|
this.tbSelRTF.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.tbSelRTF.Multiline = true;
|
|
this.tbSelRTF.Name = "tbSelRTF";
|
|
this.tbSelRTF.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
|
this.tbSelRTF.Size = new System.Drawing.Size(643, 47);
|
|
this.tbSelRTF.TabIndex = 8;
|
|
//
|
|
// lblFind
|
|
//
|
|
this.lblFind.AutoSize = true;
|
|
this.lblFind.Location = new System.Drawing.Point(344, 178);
|
|
this.lblFind.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lblFind.Name = "lblFind";
|
|
this.lblFind.Size = new System.Drawing.Size(50, 17);
|
|
this.lblFind.TabIndex = 11;
|
|
this.lblFind.Text = "Where";
|
|
//
|
|
// nudStart
|
|
//
|
|
this.nudStart.Location = new System.Drawing.Point(416, 176);
|
|
this.nudStart.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.nudStart.Maximum = new decimal(new int[] {
|
|
1000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nudStart.Name = "nudStart";
|
|
this.nudStart.Size = new System.Drawing.Size(57, 22);
|
|
this.nudStart.TabIndex = 14;
|
|
//
|
|
// nudLength
|
|
//
|
|
this.nudLength.Location = new System.Drawing.Point(481, 176);
|
|
this.nudLength.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.nudLength.Maximum = new decimal(new int[] {
|
|
1000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nudLength.Name = "nudLength";
|
|
this.nudLength.Size = new System.Drawing.Size(49, 22);
|
|
this.nudLength.TabIndex = 15;
|
|
//
|
|
// dgv
|
|
//
|
|
this.dgv.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
this.dgv.Location = new System.Drawing.Point(4, 481);
|
|
this.dgv.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.dgv.Name = "dgv";
|
|
this.dgv.RowTemplate.Height = 24;
|
|
this.dgv.Size = new System.Drawing.Size(644, 204);
|
|
this.dgv.TabIndex = 16;
|
|
this.dgv.SelectionChanged += new System.EventHandler(this.dgv_SelectionChanged);
|
|
//
|
|
// btnFindAllLinks
|
|
//
|
|
this.btnFindAllLinks.Location = new System.Drawing.Point(17, 174);
|
|
this.btnFindAllLinks.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btnFindAllLinks.Name = "btnFindAllLinks";
|
|
this.btnFindAllLinks.Size = new System.Drawing.Size(101, 28);
|
|
this.btnFindAllLinks.TabIndex = 17;
|
|
this.btnFindAllLinks.Text = "Find All Links";
|
|
this.btnFindAllLinks.UseVisualStyleBackColor = true;
|
|
this.btnFindAllLinks.Click += new System.EventHandler(this.btnFindAllLinks_Click);
|
|
//
|
|
// tbSelText
|
|
//
|
|
this.tbSelText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.tbSelText.Location = new System.Drawing.Point(4, 426);
|
|
this.tbSelText.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.tbSelText.Multiline = true;
|
|
this.tbSelText.Name = "tbSelText";
|
|
this.tbSelText.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
|
this.tbSelText.Size = new System.Drawing.Size(643, 47);
|
|
this.tbSelText.TabIndex = 18;
|
|
//
|
|
// btnUpdateSel
|
|
//
|
|
this.btnUpdateSel.Location = new System.Drawing.Point(213, 174);
|
|
this.btnUpdateSel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btnUpdateSel.Name = "btnUpdateSel";
|
|
this.btnUpdateSel.Size = new System.Drawing.Size(127, 28);
|
|
this.btnUpdateSel.TabIndex = 19;
|
|
this.btnUpdateSel.Text = "Update Selection";
|
|
this.btnUpdateSel.UseVisualStyleBackColor = true;
|
|
this.btnUpdateSel.Click += new System.EventHandler(this.btnUpdateSel_Click);
|
|
//
|
|
// cbProcess
|
|
//
|
|
this.cbProcess.AutoSize = true;
|
|
this.cbProcess.Checked = true;
|
|
this.cbProcess.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
this.cbProcess.Location = new System.Drawing.Point(125, 176);
|
|
this.cbProcess.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
this.cbProcess.Name = "cbProcess";
|
|
this.cbProcess.Size = new System.Drawing.Size(81, 21);
|
|
this.cbProcess.TabIndex = 20;
|
|
this.cbProcess.Text = "Process";
|
|
this.cbProcess.UseVisualStyleBackColor = true;
|
|
this.cbProcess.CheckedChanged += new System.EventHandler(this.cbProcess_CheckedChanged);
|
|
//
|
|
// lbTbSel
|
|
//
|
|
this.lbTbSel.AutoSize = true;
|
|
this.lbTbSel.Location = new System.Drawing.Point(539, 178);
|
|
this.lbTbSel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbTbSel.Name = "lbTbSel";
|
|
this.lbTbSel.Size = new System.Drawing.Size(50, 17);
|
|
this.lbTbSel.TabIndex = 21;
|
|
this.lbTbSel.Text = "Where";
|
|
//
|
|
// btnRefreshText
|
|
//
|
|
this.btnRefreshText.Location = new System.Drawing.Point(347, 17);
|
|
this.btnRefreshText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
this.btnRefreshText.Name = "btnRefreshText";
|
|
this.btnRefreshText.Size = new System.Drawing.Size(111, 26);
|
|
this.btnRefreshText.TabIndex = 23;
|
|
this.btnRefreshText.Text = "Refresh Text";
|
|
this.btnRefreshText.UseVisualStyleBackColor = true;
|
|
this.btnRefreshText.Click += new System.EventHandler(this.btnRefreshText_Click);
|
|
//
|
|
// btnReplaceSelection
|
|
//
|
|
this.btnReplaceSelection.Location = new System.Drawing.Point(17, 209);
|
|
this.btnReplaceSelection.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.btnReplaceSelection.Name = "btnReplaceSelection";
|
|
this.btnReplaceSelection.Size = new System.Drawing.Size(137, 28);
|
|
this.btnReplaceSelection.TabIndex = 25;
|
|
this.btnReplaceSelection.Text = "Replace Selection";
|
|
this.btnReplaceSelection.UseVisualStyleBackColor = true;
|
|
this.btnReplaceSelection.Click += new System.EventHandler(this.btnReplaceSelection_Click);
|
|
//
|
|
// lblWith
|
|
//
|
|
this.lblWith.AutoSize = true;
|
|
this.lblWith.Location = new System.Drawing.Point(163, 215);
|
|
this.lblWith.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lblWith.Name = "lblWith";
|
|
this.lblWith.Size = new System.Drawing.Size(36, 17);
|
|
this.lblWith.TabIndex = 26;
|
|
this.lblWith.Text = "With";
|
|
//
|
|
// tbWith
|
|
//
|
|
this.tbWith.Location = new System.Drawing.Point(207, 212);
|
|
this.tbWith.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.tbWith.Name = "tbWith";
|
|
this.tbWith.Size = new System.Drawing.Size(132, 22);
|
|
this.tbWith.TabIndex = 27;
|
|
this.tbWith.Text = "X";
|
|
//
|
|
// tbSendKeys
|
|
//
|
|
this.tbSendKeys.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.tbSendKeys.Location = new System.Drawing.Point(429, 212);
|
|
this.tbSendKeys.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.tbSendKeys.Name = "tbSendKeys";
|
|
this.tbSendKeys.Size = new System.Drawing.Size(213, 22);
|
|
this.tbSendKeys.TabIndex = 29;
|
|
this.tbSendKeys.Text = "{BS}";
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(348, 215);
|
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(72, 17);
|
|
this.label1.TabIndex = 28;
|
|
this.label1.Text = "SendKeys";
|
|
//
|
|
// lblRangeStatus
|
|
//
|
|
this.lblRangeStatus.AutoSize = true;
|
|
this.lblRangeStatus.Location = new System.Drawing.Point(472, 18);
|
|
this.lblRangeStatus.Name = "lblRangeStatus";
|
|
this.lblRangeStatus.Size = new System.Drawing.Size(94, 17);
|
|
this.lblRangeStatus.TabIndex = 30;
|
|
this.lblRangeStatus.Text = "Range Status";
|
|
//
|
|
// btnPG
|
|
//
|
|
this.btnPG.Location = new System.Drawing.Point(572, 15);
|
|
this.btnPG.Name = "btnPG";
|
|
this.btnPG.Size = new System.Drawing.Size(39, 23);
|
|
this.btnPG.TabIndex = 31;
|
|
this.btnPG.Text = "PG";
|
|
this.btnPG.UseVisualStyleBackColor = true;
|
|
this.btnPG.Click += new System.EventHandler(this.btnPG_Click);
|
|
//
|
|
// tbRTF
|
|
//
|
|
this.tbRTF.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.tbRTF.Location = new System.Drawing.Point(4, 244);
|
|
this.tbRTF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
this.tbRTF.Multiline = true;
|
|
this.tbRTF.Name = "tbRTF";
|
|
this.tbRTF.Size = new System.Drawing.Size(643, 120);
|
|
this.tbRTF.TabIndex = 24;
|
|
this.tbRTF.SelectionChange += new System.EventHandler(this.tbRTF_SelectionChange);
|
|
this.tbRTF.TextChanged += new System.EventHandler(this.tbRTF_TextChanged);
|
|
//
|
|
// myRTB1
|
|
//
|
|
this.myRTB1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.myRTB1.HideSelection = false;
|
|
this.myRTB1.Location = new System.Drawing.Point(4, 52);
|
|
this.myRTB1.Margin = new System.Windows.Forms.Padding(4);
|
|
this.myRTB1.Name = "myRTB1";
|
|
this.myRTB1.ProcessKeystrokes = true;
|
|
this.myRTB1.RTBRangeStatus = TestWndProc.MyRTB.RangeStatus.NoContainedLinks;
|
|
this.myRTB1.ShowDebug = true;
|
|
this.myRTB1.Size = new System.Drawing.Size(643, 117);
|
|
this.myRTB1.TabIndex = 0;
|
|
this.myRTB1.Text = "";
|
|
this.myRTB1.Protected += new System.EventHandler(this.myRTB1_Protected);
|
|
//
|
|
// btnSelHngIndent
|
|
//
|
|
this.btnSelHngIndent.Location = new System.Drawing.Point(618, 15);
|
|
this.btnSelHngIndent.Name = "btnSelHngIndent";
|
|
this.btnSelHngIndent.Size = new System.Drawing.Size(39, 23);
|
|
this.btnSelHngIndent.TabIndex = 32;
|
|
this.btnSelHngIndent.Text = "SI";
|
|
this.btnSelHngIndent.UseVisualStyleBackColor = true;
|
|
this.btnSelHngIndent.Click += new System.EventHandler(this.btnSelHngIndent_Click);
|
|
//
|
|
// MyPanel
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.Controls.Add(this.btnSelHngIndent);
|
|
this.Controls.Add(this.btnPG);
|
|
this.Controls.Add(this.lblRangeStatus);
|
|
this.Controls.Add(this.tbSendKeys);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.tbWith);
|
|
this.Controls.Add(this.lblWith);
|
|
this.Controls.Add(this.btnReplaceSelection);
|
|
this.Controls.Add(this.tbRTF);
|
|
this.Controls.Add(this.btnRefreshText);
|
|
this.Controls.Add(this.lbTbSel);
|
|
this.Controls.Add(this.cbProcess);
|
|
this.Controls.Add(this.btnUpdateSel);
|
|
this.Controls.Add(this.tbSelText);
|
|
this.Controls.Add(this.btnFindAllLinks);
|
|
this.Controls.Add(this.dgv);
|
|
this.Controls.Add(this.nudLength);
|
|
this.Controls.Add(this.nudStart);
|
|
this.Controls.Add(this.lblFind);
|
|
this.Controls.Add(this.tbSelRTF);
|
|
this.Controls.Add(this.btnLinkOff);
|
|
this.Controls.Add(this.btnLinkOn);
|
|
this.Controls.Add(this.btnBoldOff);
|
|
this.Controls.Add(this.btnBoldOn);
|
|
this.Controls.Add(this.myRTB1);
|
|
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
this.Name = "MyPanel";
|
|
this.Size = new System.Drawing.Size(660, 702);
|
|
((System.ComponentModel.ISupportInitialize)(this.nudStart)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nudLength)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.dgv)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private MyRTB myRTB1;
|
|
private System.Windows.Forms.Button btnBoldOn;
|
|
private System.Windows.Forms.Button btnBoldOff;
|
|
private System.Windows.Forms.Button btnLinkOff;
|
|
private System.Windows.Forms.Button btnLinkOn;
|
|
private System.Windows.Forms.TextBox tbSelRTF;
|
|
private System.Windows.Forms.Label lblFind;
|
|
private System.Windows.Forms.NumericUpDown nudStart;
|
|
private System.Windows.Forms.NumericUpDown nudLength;
|
|
private System.Windows.Forms.DataGridView dgv;
|
|
private System.Windows.Forms.Button btnFindAllLinks;
|
|
private System.Windows.Forms.TextBox tbSelText;
|
|
private System.Windows.Forms.Button btnUpdateSel;
|
|
private System.Windows.Forms.CheckBox cbProcess;
|
|
private System.Windows.Forms.Label lbTbSel;
|
|
private System.Windows.Forms.Button btnRefreshText;
|
|
private MyTextBox tbRTF;
|
|
private System.Windows.Forms.Button btnReplaceSelection;
|
|
private System.Windows.Forms.Label lblWith;
|
|
private System.Windows.Forms.TextBox tbWith;
|
|
private System.Windows.Forms.TextBox tbSendKeys;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label lblRangeStatus;
|
|
private System.Windows.Forms.Button btnPG;
|
|
private System.Windows.Forms.Button btnSelHngIndent;
|
|
}
|
|
}
|