I would like to understand the following native behaviour in a dialog box:
Wyou initially click on a control, it gains the focus but it doesn't display
a focus rect. Hit tab once or several times to come back to the control and
it displays a focus rect. Hit tab again to remove the focus from the
control, now click on it and it regains the focus but this time it displays
a focus rect.
So gaining the focus is not enough to display a focus rect. Hitting tab
fixes that once and for all.
Why this behaviour ?
I would like a focus rect in any case. Is there a solution ?