focus on disabled widgets
« on: 13 November 2015, 20:13:19 »
Hi

Should focus override  disabled widgets?

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: focus on disabled widgets
« Reply #1 on: 13 November 2015, 20:15:38 »
I'm not sure what you are asking exactly, but disabled widgets cannot be focused.

Re: focus on disabled widgets
« Reply #2 on: 13 November 2015, 20:24:26 »
Yes they can.

example:
pEditBox->disable(); // set disable

bool enabled = pEditBox->isEnabled(); // this is false

pEditBox->focus(); //now i can edit in editbox

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: focus on disabled widgets
« Reply #3 on: 13 November 2015, 20:27:50 »
Indeed, that shouldn't happen.
I only tried it with clicking on the widget and by using the tab key, I didn't try with calling the focus function manually before.
I'll fix this later today or tomorrow so that the edit box (and other widgets) don't get focused.

*

texus

  • *****
  • 1161
    • View Profile
    • Texus's Blog
Re: focus on disabled widgets
« Reply #4 on: 13 November 2015, 23:13:46 »
Focusing a disabled widget now no longer works with the latest github version.