Control-SetFocus

Function Name dcl-Control-SetFocus
Syntax   (dcl-Control-SetFocus <CONTROL>)
Return Type Boolean (T if successful; otherwise NIL)
Applies To All Controls and Forms

如果可见,此方法将键盘焦点设置为控件。

注意
不要在OnInitialize事件处理程序中调用此函数以将初始焦点设置为特定控件。 相反,使用ZOrder函数将所需的对焦控制放在Z / Tab顺序的顶部。