예제 #1
0
        private void SetupTab1(ref TabPage tabPage1)
        {
            tabPage1.Location = new System.Drawing.Point(4, 22);
            tabPage1.Name     = "General";
            tabPage1.Padding  = new System.Windows.Forms.Padding(3);
            tabPage1.TabIndex = 0;
            tabPage1.Text     = "General";
            tabPage1.UseVisualStyleBackColor = true;

            var toggleHotKeyLabel = new Label();

            toggleHotKeyLabel.AutoSize = true;
            toggleHotKeyLabel.Location = new System.Drawing.Point(20, 20);
            toggleHotKeyLabel.Name     = "Toggle Window Hotkey";
            toggleHotKeyLabel.Size     = new System.Drawing.Size(100, 15);
            toggleHotKeyLabel.TabIndex = 1;
            toggleHotKeyLabel.Text     = "Toggle Window Hotkey:";

            ToggleHotkeyTextBoxCaptureArea          = new HotkeyTextBox();
            ToggleHotkeyTextBoxCaptureArea.Font     = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            ToggleHotkeyTextBoxCaptureArea.Location = new System.Drawing.Point(180, 15);
            ToggleHotkeyTextBoxCaptureArea.Name     = "hotkeyTextBoxCaptureArea";
            ToggleHotkeyTextBoxCaptureArea.Size     = new System.Drawing.Size(200, 25);
            ToggleHotkeyTextBoxCaptureArea.TabIndex = 0;

            var saveHotKeyLabel = new Label();

            saveHotKeyLabel.AutoSize = true;
            saveHotKeyLabel.Location = new System.Drawing.Point(20, 55);
            saveHotKeyLabel.Name     = "Save From Clipboard Hotkey";
            saveHotKeyLabel.Size     = new System.Drawing.Size(100, 15);
            saveHotKeyLabel.TabIndex = 1;
            saveHotKeyLabel.Text     = "Save From Clipboard Hotkey:";

            SaveHotkeyTextBoxCaptureArea          = new HotkeyTextBox();
            SaveHotkeyTextBoxCaptureArea.Font     = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            SaveHotkeyTextBoxCaptureArea.Location = new System.Drawing.Point(180, 50);
            SaveHotkeyTextBoxCaptureArea.Name     = "hotkeyTextBoxCaptureArea";
            SaveHotkeyTextBoxCaptureArea.Size     = new System.Drawing.Size(200, 25);
            SaveHotkeyTextBoxCaptureArea.TabIndex = 0;

            tabPage1.Controls.Add(toggleHotKeyLabel);
            tabPage1.Controls.Add(saveHotKeyLabel);
            tabPage1.Controls.Add(SaveHotkeyTextBoxCaptureArea);
            tabPage1.Controls.Add(ToggleHotkeyTextBoxCaptureArea);
        }
 public HotkeyBox()
 {
     InitializeComponent();
     HotkeyTextBox.SetupFocusSelect();
 }