Corrected Tooltip on Keyboard Input Button

This commit is contained in:
MaxXor 2015-08-02 14:31:19 +02:00
parent 6abcd75f11
commit eb2794ee0c
1 changed files with 4 additions and 2 deletions

View File

@ -221,14 +221,16 @@ private void btnKeyboard_Click(object sender, EventArgs e)
{ {
if (_enableKeyboardInput) if (_enableKeyboardInput)
{ {
this.picDesktop.Cursor = Cursors.Default;
btnKeyboard.Image = Properties.Resources.keyboard_delete; btnKeyboard.Image = Properties.Resources.keyboard_delete;
toolTipButtons.SetToolTip(btnMouse, "Enable keyboard input."); toolTipButtons.SetToolTip(btnKeyboard, "Enable keyboard input.");
_enableKeyboardInput = false; _enableKeyboardInput = false;
} }
else else
{ {
this.picDesktop.Cursor = Cursors.Hand;
btnKeyboard.Image = Properties.Resources.keyboard_add; btnKeyboard.Image = Properties.Resources.keyboard_add;
toolTipButtons.SetToolTip(btnMouse, "Disable keyboard input."); toolTipButtons.SetToolTip(btnKeyboard, "Disable keyboard input.");
_enableKeyboardInput = true; _enableKeyboardInput = true;
} }