[Lazarus] quitar foco a un componente get off focus

Denis Kozlov dezlov at gmail.com
Tue Jul 11 00:43:45 CEST 2017


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
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170710/8f60cfc7/attachment.html>


More information about the Lazarus mailing list