예제 #1
0
        protected override void OnActivated(EventArgs e)
        {
            menuItemViewButtons.Checked = Properties.Settings.Default.ViewButtons;
            viewButtons = ShowView(viewButtons, Properties.Settings.Default.ViewButtons);

            menuItemViewQueue.Checked = Properties.Settings.Default.ViewQueue;
            viewQueue = ShowView(viewQueue, Properties.Settings.Default.ViewQueue);

            WindowHandleUtils.HideCaret(textBoxInputStream.Handle);

            base.OnActivated(e);
        }
예제 #2
0
 public void AppendText(string text)
 {
     if (!IsDisposed)
     {
         if (InvokeRequired)
         {
             AppendTextDelegate d = new AppendTextDelegate(AppendText);
             Invoke(d, new object[] { text });
         }
         else
         {
             textBoxInputStream.AppendText(text);
             WindowHandleUtils.HideCaret(textBoxInputStream.Handle);
         }
     }
 }
예제 #3
0
        internal void UpdateKeys()
        {
            if (!IsDisposed)
            {
                SetHeadingText(keysPressed.Count);
                this.textBoxButtonStates.Clear();

                foreach (int keyCode in keysPressed)
                {
                    Key key = Keyboard.GetKey(keyCode);
                    this.textBoxButtonStates.Text += key.ToString();;
                    this.textBoxButtonStates.Text += Environment.NewLine;
                }

                WindowHandleUtils.HideCaret(this.textBoxButtonStates.Handle);
            }
        }
예제 #4
0
 protected override void OnActivated(EventArgs e)
 {
     WindowHandleUtils.HideCaret(this.textBoxButtonStates.Handle);
     base.OnActivated(e);
 }
예제 #5
0
 private void ButtonClear_Click(object sender, EventArgs e)
 {
     textBoxInputStream.Clear();
     WindowHandleUtils.HideCaret(textBoxInputStream.Handle);
 }