ControlContext :: hasFocus - Has control got focus?
A control has focus only, when it is the control directly acting, i.e. parent widgets are not considered as having the focus. This means, that at maximum one control in an application may have got focus.
The function returns true , when the control has focus and false otherwise.
Return value: State of function return ( bool )
A State true indicates, that the function was executed successfully. Otherwise state is false .