focus on disabled widgets

Started by billarhos, 13 November 2015, 20:13:19

billarhos

Hi

Should focus override  disabled widgets?

texus

I'm not sure what you are asking exactly, but disabled widgets cannot be focused.

billarhos

Yes they can.

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

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

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

texus

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

Focusing a disabled widget now no longer works with the latest github version.