Control_SetFocus |

Funktionsname | dcl_Control_SetFocus
Syntax | `(dcl_Control_SetFocus <CONTROL>)`
Rückgabewert | Boolean (T if successful; otherwise NIL)
Anwendbar auf | All Controls and Forms

This method sets the keyboard focus to the control if it is visible.

### Note

Do not call this function inside your OnInitialize event handler to set the initial focus to a specific control. Instead, use the SetZOrder function to put the desired focus control at the top of the Z/Tab order.