示例#1
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FormEKey_New));

            this.CheckCtrl               = new CheckBox();
            this.checkAlt                = new CheckBox();
            this.checkShift              = new CheckBox();
            this.checkWindows            = new CheckBox();
            this.buttonClearStr          = new Button();
            this.labelMaxStr             = new Label();
            this.radioMouseLeft          = new RadioButton();
            this.radioMouseMid           = new RadioButton();
            this.radioMouseRight         = new RadioButton();
            this.radioSwitchScreen       = new RadioButton();
            this.radioSwithBrush         = new RadioButton();
            this.labelProgressPath       = new Label();
            this.labelPath               = new Label();
            this.buttonBrowse            = new Button();
            this.buttonOk                = new Button();
            this.buttonCancel            = new Button();
            this.groupBox1               = new GroupBox();
            this.huionTextView1          = new HuionTextView();
            this.checkBoxFunKb           = new CheckBox();
            this.groupBox2               = new GroupBox();
            this.radioMouseWheelBackWard = new RadioButton();
            this.radioMouseWheelForward  = new RadioButton();
            this.checkBoxFunMouse        = new CheckBox();
            this.groupBox3               = new GroupBox();
            this.checkBoxFunSwitch       = new CheckBox();
            this.groupBox4               = new GroupBox();
            this.checkBoxFunRun          = new CheckBox();
            this.panelContent            = new Panel();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.panelContent.SuspendLayout();
            this.SuspendLayout();
            this.CheckCtrl.AutoSize = true;
            this.CheckCtrl.Location = new Point(18, 15);
            this.CheckCtrl.Margin   = new Padding(3, 4, 3, 4);
            this.CheckCtrl.Name     = "CheckCtrl";
            this.CheckCtrl.Size     = new Size(47, 21);
            this.CheckCtrl.TabIndex = 2;
            this.CheckCtrl.Text     = "Ctrl";
            this.CheckCtrl.UseVisualStyleBackColor = true;
            this.CheckCtrl.CheckedChanged         += new EventHandler(this.onControlsCheckedChanged);
            this.checkAlt.AutoSize = true;
            this.checkAlt.Location = new Point(232, 15);
            this.checkAlt.Margin   = new Padding(3, 4, 3, 4);
            this.checkAlt.Name     = "checkAlt";
            this.checkAlt.Size     = new Size(42, 21);
            this.checkAlt.TabIndex = 5;
            this.checkAlt.Text     = "Alt";
            this.checkAlt.UseVisualStyleBackColor = true;
            this.checkAlt.CheckedChanged         += new EventHandler(this.onControlsCheckedChanged);
            this.checkShift.AutoSize = true;
            this.checkShift.Location = new Point(122, 15);
            this.checkShift.Margin   = new Padding(3, 4, 3, 4);
            this.checkShift.Name     = "checkShift";
            this.checkShift.Size     = new Size(52, 21);
            this.checkShift.TabIndex = 3;
            this.checkShift.Text     = "Shift";
            this.checkShift.UseVisualStyleBackColor = true;
            this.checkShift.CheckedChanged         += new EventHandler(this.onControlsCheckedChanged);
            this.checkWindows.AutoSize = true;
            this.checkWindows.Location = new Point(330, 15);
            this.checkWindows.Margin   = new Padding(3, 4, 3, 4);
            this.checkWindows.Name     = "checkWindows";
            this.checkWindows.Size     = new Size(49, 21);
            this.checkWindows.TabIndex = 6;
            this.checkWindows.Text     = "Win";
            this.checkWindows.UseVisualStyleBackColor = true;
            this.checkWindows.CheckedChanged         += new EventHandler(this.onControlsCheckedChanged);
            this.buttonClearStr.AutoSize = true;
            this.buttonClearStr.Location = new Point(617, 94);
            this.buttonClearStr.Margin   = new Padding(3, 4, 3, 4);
            this.buttonClearStr.Name     = "buttonClearStr";
            this.buttonClearStr.Size     = new Size(107, 27);
            this.buttonClearStr.TabIndex = 12;
            this.buttonClearStr.Text     = "清空字符串";
            this.buttonClearStr.UseVisualStyleBackColor = true;
            this.buttonClearStr.Click   += new EventHandler(this.buttonClearStr_Click);
            this.labelMaxStr.AutoSize    = true;
            this.labelMaxStr.ForeColor   = SystemColors.ControlDarkDark;
            this.labelMaxStr.Location    = new Point(474, 99);
            this.labelMaxStr.Name        = "labelMaxStr";
            this.labelMaxStr.Size        = new Size(58, 17);
            this.labelMaxStr.TabIndex    = 0;
            this.labelMaxStr.Text        = "最多16个";
            this.radioMouseLeft.AutoSize = true;
            this.radioMouseLeft.Location = new Point(20, 16);
            this.radioMouseLeft.Margin   = new Padding(3, 4, 3, 4);
            this.radioMouseLeft.Name     = "radioMouseLeft";
            this.radioMouseLeft.Size     = new Size(74, 21);
            this.radioMouseLeft.TabIndex = 14;
            this.radioMouseLeft.TabStop  = true;
            this.radioMouseLeft.Text     = "鼠标左键";
            this.radioMouseLeft.UseVisualStyleBackColor = true;
            this.radioMouseMid.AutoSize = true;
            this.radioMouseMid.Location = new Point(266, 16);
            this.radioMouseMid.Margin   = new Padding(3, 4, 3, 4);
            this.radioMouseMid.Name     = "radioMouseMid";
            this.radioMouseMid.Size     = new Size(74, 21);
            this.radioMouseMid.TabIndex = 15;
            this.radioMouseMid.TabStop  = true;
            this.radioMouseMid.Text     = "鼠标中键";
            this.radioMouseMid.UseVisualStyleBackColor = true;
            this.radioMouseRight.AutoSize = true;
            this.radioMouseRight.Location = new Point(518, 16);
            this.radioMouseRight.Margin   = new Padding(3, 4, 3, 4);
            this.radioMouseRight.Name     = "radioMouseRight";
            this.radioMouseRight.Size     = new Size(74, 21);
            this.radioMouseRight.TabIndex = 16;
            this.radioMouseRight.TabStop  = true;
            this.radioMouseRight.Text     = "鼠标右键";
            this.radioMouseRight.UseVisualStyleBackColor = true;
            this.radioSwitchScreen.AutoSize = true;
            this.radioSwitchScreen.Location = new Point(20, 14);
            this.radioSwitchScreen.Margin   = new Padding(3, 4, 3, 4);
            this.radioSwitchScreen.Name     = "radioSwitchScreen";
            this.radioSwitchScreen.Size     = new Size(74, 21);
            this.radioSwitchScreen.TabIndex = 20;
            this.radioSwitchScreen.TabStop  = true;
            this.radioSwitchScreen.Text     = "切换屏幕";
            this.radioSwitchScreen.UseVisualStyleBackColor = true;
            this.radioSwithBrush.AutoSize = true;
            this.radioSwithBrush.Location = new Point(266, 14);
            this.radioSwithBrush.Margin   = new Padding(3, 4, 3, 4);
            this.radioSwithBrush.Name     = "radioSwithBrush";
            this.radioSwithBrush.Size     = new Size(74, 21);
            this.radioSwithBrush.TabIndex = 20;
            this.radioSwithBrush.TabStop  = true;
            this.radioSwithBrush.Text     = "切换笔刷";
            this.radioSwithBrush.UseVisualStyleBackColor = true;
            this.labelProgressPath.AutoSize  = true;
            this.labelProgressPath.Location  = new Point(20, 13);
            this.labelProgressPath.Name      = "labelProgressPath";
            this.labelProgressPath.Size      = new Size(56, 17);
            this.labelProgressPath.TabIndex  = 0;
            this.labelProgressPath.Text      = "程序路径";
            this.labelProgressPath.TextAlign = ContentAlignment.MiddleRight;
            this.labelPath.Anchor            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.labelPath.BorderStyle       = BorderStyle.FixedSingle;
            this.labelPath.Location          = new Point(23, 33);
            this.labelPath.Name        = "labelPath";
            this.labelPath.Size        = new Size(542, 27);
            this.labelPath.TabIndex    = 22;
            this.buttonBrowse.AutoSize = true;
            this.buttonBrowse.Location = new Point(597, 33);
            this.buttonBrowse.Margin   = new Padding(3, 4, 3, 4);
            this.buttonBrowse.Name     = "buttonBrowse";
            this.buttonBrowse.Size     = new Size(101, 27);
            this.buttonBrowse.TabIndex = 23;
            this.buttonBrowse.Text     = "浏览";
            this.buttonBrowse.UseVisualStyleBackColor = true;
            this.buttonBrowse.Click += new EventHandler(this.buttonBrowse_Click);
            this.buttonOk.Anchor     = AnchorStyles.Bottom | AnchorStyles.Right;
            this.buttonOk.ForeColor  = SystemColors.ControlText;
            this.buttonOk.Location   = new Point(441, 450);
            this.buttonOk.Margin     = new Padding(3, 4, 3, 4);
            this.buttonOk.Name       = "buttonOk";
            this.buttonOk.Size       = new Size(149, 27);
            this.buttonOk.TabIndex   = 24;
            this.buttonOk.Text       = "确定";
            this.buttonOk.UseVisualStyleBackColor = true;
            this.buttonOk.Click        += new EventHandler(this.buttonOk_Click);
            this.buttonCancel.Anchor    = AnchorStyles.Bottom | AnchorStyles.Right;
            this.buttonCancel.ForeColor = SystemColors.ControlText;
            this.buttonCancel.Location  = new Point(609, 450);
            this.buttonCancel.Margin    = new Padding(3, 4, 3, 4);
            this.buttonCancel.Name      = "buttonCancel";
            this.buttonCancel.Size      = new Size(147, 27);
            this.buttonCancel.TabIndex  = 25;
            this.buttonCancel.Text      = "取消";
            this.buttonCancel.UseVisualStyleBackColor = true;
            this.buttonCancel.Click += new EventHandler(this.buttonCancel_Click);
            this.groupBox1.BackColor = Color.Transparent;
            this.groupBox1.Controls.Add((Control)this.huionTextView1);
            this.groupBox1.Controls.Add((Control)this.checkWindows);
            this.groupBox1.Controls.Add((Control)this.CheckCtrl);
            this.groupBox1.Controls.Add((Control)this.checkAlt);
            this.groupBox1.Controls.Add((Control)this.checkShift);
            this.groupBox1.Controls.Add((Control)this.buttonClearStr);
            this.groupBox1.Controls.Add((Control)this.labelMaxStr);
            this.groupBox1.Enabled                     = false;
            this.groupBox1.FlatStyle                   = FlatStyle.Flat;
            this.groupBox1.Location                    = new Point(17, 27);
            this.groupBox1.Margin                      = new Padding(3, 4, 3, 4);
            this.groupBox1.Name                        = "groupBox1";
            this.groupBox1.Padding                     = new Padding(3, 4, 3, 4);
            this.groupBox1.Size                        = new Size(739, 128);
            this.groupBox1.TabIndex                    = 27;
            this.groupBox1.TabStop                     = false;
            this.huionTextView1.ImeMode                = ImeMode.Disable;
            this.huionTextView1.IsAltChecked           = false;
            this.huionTextView1.IsControlChecked       = false;
            this.huionTextView1.IsShiftChecked         = false;
            this.huionTextView1.IsSingleKeys           = false;
            this.huionTextView1.IsWinChecked           = false;
            this.huionTextView1.Location               = new Point(18, 44);
            this.huionTextView1.Multiline              = true;
            this.huionTextView1.Name                   = "huionTextView1";
            this.huionTextView1.Size                   = new Size(450, 72);
            this.huionTextView1.TabIndex               = 13;
            this.checkBoxFunKb.AutoSize                = true;
            this.checkBoxFunKb.Location                = new Point(17, 12);
            this.checkBoxFunKb.Margin                  = new Padding(3, 4, 3, 4);
            this.checkBoxFunKb.Name                    = "checkBoxFunKb";
            this.checkBoxFunKb.Size                    = new Size(111, 21);
            this.checkBoxFunKb.TabIndex                = 1;
            this.checkBoxFunKb.Tag                     = (object)"1";
            this.checkBoxFunKb.Text                    = "键盘组合键功能";
            this.checkBoxFunKb.UseVisualStyleBackColor = true;
            this.checkBoxFunKb.CheckStateChanged      += new EventHandler(this.TypeChanged);
            this.groupBox2.Controls.Add((Control)this.radioMouseWheelBackWard);
            this.groupBox2.Controls.Add((Control)this.radioMouseWheelForward);
            this.groupBox2.Controls.Add((Control)this.radioMouseMid);
            this.groupBox2.Controls.Add((Control)this.radioMouseLeft);
            this.groupBox2.Controls.Add((Control)this.radioMouseRight);
            this.groupBox2.Enabled  = false;
            this.groupBox2.Location = new Point(17, 185);
            this.groupBox2.Margin   = new Padding(3, 4, 3, 4);
            this.groupBox2.Name     = "groupBox2";
            this.groupBox2.Padding  = new Padding(3, 4, 3, 4);
            this.groupBox2.Size     = new Size(739, 75);
            this.groupBox2.TabIndex = 28;
            this.groupBox2.TabStop  = false;
            this.radioMouseWheelBackWard.AutoSize = true;
            this.radioMouseWheelBackWard.Location = new Point(266, 45);
            this.radioMouseWheelBackWard.Margin   = new Padding(3, 4, 3, 4);
            this.radioMouseWheelBackWard.Name     = "radioMouseWheelBackWard";
            this.radioMouseWheelBackWard.Size     = new Size(74, 21);
            this.radioMouseWheelBackWard.TabIndex = 18;
            this.radioMouseWheelBackWard.TabStop  = true;
            this.radioMouseWheelBackWard.Text     = "后向滚轮";
            this.radioMouseWheelBackWard.UseVisualStyleBackColor = true;
            this.radioMouseWheelForward.AutoSize = true;
            this.radioMouseWheelForward.Location = new Point(20, 45);
            this.radioMouseWheelForward.Margin   = new Padding(3, 4, 3, 4);
            this.radioMouseWheelForward.Name     = "radioMouseWheelForward";
            this.radioMouseWheelForward.Size     = new Size(74, 21);
            this.radioMouseWheelForward.TabIndex = 17;
            this.radioMouseWheelForward.TabStop  = true;
            this.radioMouseWheelForward.Text     = "前向滚轮";
            this.radioMouseWheelForward.UseVisualStyleBackColor = true;
            this.checkBoxFunMouse.AutoSize = true;
            this.checkBoxFunMouse.Location = new Point(17, 170);
            this.checkBoxFunMouse.Margin   = new Padding(3, 4, 3, 4);
            this.checkBoxFunMouse.Name     = "checkBoxFunMouse";
            this.checkBoxFunMouse.Size     = new Size(99, 21);
            this.checkBoxFunMouse.TabIndex = 13;
            this.checkBoxFunMouse.Tag      = (object)"2";
            this.checkBoxFunMouse.Text     = "鼠标按键功能";
            this.checkBoxFunMouse.UseVisualStyleBackColor = true;
            this.checkBoxFunMouse.CheckStateChanged      += new EventHandler(this.TypeChanged);
            this.groupBox3.Controls.Add((Control)this.radioSwitchScreen);
            this.groupBox3.Controls.Add((Control)this.radioSwithBrush);
            this.groupBox3.Enabled          = false;
            this.groupBox3.Location         = new Point(17, 295);
            this.groupBox3.Margin           = new Padding(3, 4, 3, 4);
            this.groupBox3.Name             = "groupBox3";
            this.groupBox3.Padding          = new Padding(3, 4, 3, 4);
            this.groupBox3.Size             = new Size(739, 42);
            this.groupBox3.TabIndex         = 29;
            this.groupBox3.TabStop          = false;
            this.checkBoxFunSwitch.AutoSize = true;
            this.checkBoxFunSwitch.Location = new Point(17, 280);
            this.checkBoxFunSwitch.Margin   = new Padding(3, 4, 3, 4);
            this.checkBoxFunSwitch.Name     = "checkBoxFunSwitch";
            this.checkBoxFunSwitch.Size     = new Size(75, 21);
            this.checkBoxFunSwitch.TabIndex = 19;
            this.checkBoxFunSwitch.Tag      = (object)"3";
            this.checkBoxFunSwitch.Text     = "切换功能";
            this.checkBoxFunSwitch.UseVisualStyleBackColor = true;
            this.checkBoxFunSwitch.CheckStateChanged      += new EventHandler(this.TypeChanged);
            this.groupBox4.Controls.Add((Control)this.labelProgressPath);
            this.groupBox4.Controls.Add((Control)this.labelPath);
            this.groupBox4.Controls.Add((Control)this.buttonBrowse);
            this.groupBox4.Enabled       = false;
            this.groupBox4.Location      = new Point(17, 371);
            this.groupBox4.Margin        = new Padding(3, 4, 3, 4);
            this.groupBox4.Name          = "groupBox4";
            this.groupBox4.Padding       = new Padding(3, 4, 3, 4);
            this.groupBox4.Size          = new Size(739, 70);
            this.groupBox4.TabIndex      = 30;
            this.groupBox4.TabStop       = false;
            this.checkBoxFunRun.AutoSize = true;
            this.checkBoxFunRun.Location = new Point(17, 356);
            this.checkBoxFunRun.Margin   = new Padding(3, 4, 3, 4);
            this.checkBoxFunRun.Name     = "checkBoxFunRun";
            this.checkBoxFunRun.Size     = new Size(99, 21);
            this.checkBoxFunRun.TabIndex = 21;
            this.checkBoxFunRun.Tag      = (object)"4";
            this.checkBoxFunRun.Text     = "程序运行功能";
            this.checkBoxFunRun.UseVisualStyleBackColor = true;
            this.checkBoxFunRun.CheckStateChanged      += new EventHandler(this.TypeChanged);
            this.panelContent.Controls.Add((Control)this.checkBoxFunRun);
            this.panelContent.Controls.Add((Control)this.groupBox4);
            this.panelContent.Controls.Add((Control)this.checkBoxFunSwitch);
            this.panelContent.Controls.Add((Control)this.checkBoxFunKb);
            this.panelContent.Controls.Add((Control)this.groupBox3);
            this.panelContent.Controls.Add((Control)this.groupBox1);
            this.panelContent.Controls.Add((Control)this.checkBoxFunMouse);
            this.panelContent.Controls.Add((Control)this.groupBox2);
            this.panelContent.Controls.Add((Control)this.buttonCancel);
            this.panelContent.Controls.Add((Control)this.buttonOk);
            this.panelContent.Dock     = DockStyle.Fill;
            this.panelContent.Location = new Point(1, 31);
            this.panelContent.Name     = "panelContent";
            this.panelContent.Size     = new Size(768, 480);
            this.panelContent.TabIndex = 31;
            this.panelContent.Paint   += new PaintEventHandler(this.panelContent_Paint);
            this.AutoScaleDimensions   = new SizeF(96f, 96f);
            this.AutoScaleMode         = AutoScaleMode.Dpi;
            this.ClientSize            = new Size(770, 512);
            this.Controls.Add((Control)this.panelContent);
            this.Font             = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte)134);
            this.Icon             = (Icon)componentResourceManager.GetObject("$this.Icon");
            this.Margin           = new Padding(3, 4, 3, 4);
            this.MaximizeBox      = false;
            this.MinimizeBox      = false;
            this.Name             = nameof(FormEKey_New);
            this.ShowSettingsIcon = true;
            this.StartPosition    = FormStartPosition.CenterParent;
            this.Text             = "FormEKey";
            this.FormClosed      += new FormClosedEventHandler(this.FormEKey_FormClosed);
            this.Load            += new EventHandler(this.FormEKey_Load);
            this.Controls.SetChildIndex((Control)this.panelContent, 0);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.panelContent.ResumeLayout(false);
            this.panelContent.PerformLayout();
            this.ResumeLayout(false);
        }
示例#2
0
 private void InitializeComponent()
 {
     this.labelOpenMainForm = new Label();
     this.btnReset          = new Button();
     this.pbOpenMainForm    = new PictureBox();
     this.tvOpenMainForm    = new HuionTextView();
     ((ISupportInitialize)this.pbOpenMainForm).BeginInit();
     this.SuspendLayout();
     this.labelOpenMainForm.AutoSize          = true;
     this.labelOpenMainForm.Location          = new Point(23, 13);
     this.labelOpenMainForm.Name              = "labelOpenMainForm";
     this.labelOpenMainForm.Size              = new Size(79, 17);
     this.labelOpenMainForm.TabIndex          = 0;
     this.labelOpenMainForm.Text              = "Open Driver";
     this.labelOpenMainForm.TextAlign         = ContentAlignment.MiddleLeft;
     this.btnReset.AutoEllipsis               = true;
     this.btnReset.FlatAppearance.BorderColor = SystemColors.Control;
     this.btnReset.Location = new Point(282, 93);
     this.btnReset.Name     = "btnReset";
     this.btnReset.Size     = new Size(106, 29);
     this.btnReset.TabIndex = 2;
     this.btnReset.Text     = "重置为默认值";
     this.btnReset.UseVisualStyleBackColor = true;
     this.btnReset.Click                 += new EventHandler(this.btnReset_Click);
     this.pbOpenMainForm.Location         = new Point(271, 36);
     this.pbOpenMainForm.Name             = "pbOpenMainForm";
     this.pbOpenMainForm.Size             = new Size(20, 20);
     this.pbOpenMainForm.SizeMode         = PictureBoxSizeMode.Zoom;
     this.pbOpenMainForm.TabIndex         = 3;
     this.pbOpenMainForm.TabStop          = false;
     this.tvOpenMainForm.BorderStyle      = BorderStyle.FixedSingle;
     this.tvOpenMainForm.ImeMode          = ImeMode.Disable;
     this.tvOpenMainForm.IsAltChecked     = false;
     this.tvOpenMainForm.IsControlChecked = false;
     this.tvOpenMainForm.IsShiftChecked   = false;
     this.tvOpenMainForm.IsSingleKeys     = true;
     this.tvOpenMainForm.IsWinChecked     = false;
     this.tvOpenMainForm.Location         = new Point(27, 35);
     this.tvOpenMainForm.Name             = "tvOpenMainForm";
     this.tvOpenMainForm.Size             = new Size(238, 23);
     this.tvOpenMainForm.TabIndex         = 1;
     this.AutoScaleDimensions             = new SizeF(96f, 96f);
     this.AutoScaleMode = AutoScaleMode.Dpi;
     this.BackColor     = SystemColors.Control;
     this.ClientSize    = new Size(400, 261);
     this.ControlBox    = false;
     this.Controls.Add((Control)this.pbOpenMainForm);
     this.Controls.Add((Control)this.btnReset);
     this.Controls.Add((Control)this.tvOpenMainForm);
     this.Controls.Add((Control)this.labelOpenMainForm);
     this.Font            = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte)134);
     this.FormBorderStyle = FormBorderStyle.None;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = nameof(FormShortcut);
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.Text            = "FormHotkey";
     ((ISupportInitialize)this.pbOpenMainForm).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }