In Delphi, this can be accomplished by TForm.ActiveControl := nil.
In Lazarus world, there is no substitute yet. The closest seems to be
Windows.SetFocus(0).
Bug report: https://bugs.freepascal.org/view.php?id=25396
On 08/07/2017 22:22, hfiandor via Lazarus wrote:
Dear colleagues Estimados listeros:
I have a form with a button that get focus to make easy the action.
When the action is finished, the button remain with focus, and I want
that this focus (borders with dotted lines) disappear.
Somebody sent to me the command to be included in the proper line of
the program, but I missed, and now I need this.
Please, help me.
Tengo una forma con un botón que coge foco para viabilizar la
operación. Cuando la acción prevista se termina, el botón muestra el
foco (no lo pierde), como yo deseo.
Alguien con muy buena intención me mandó el comando que lo lograba,
pero yo lo perdí, y ahora lo necesito de nuevo.
Por favor, tírenme alguna ayuda.
Saludos
Ing. Héctor F. Fiandor Rosario
--
_______________________________________________
Lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus