[Lazarus] quitar foco a un componente get off focus

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Lazarus] quitar foco a un componente get off focus

Free Pascal - Lazarus mailing list

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
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Lazarus] quitar foco a un componente get off focus

Free Pascal - Lazarus mailing list
You can change focus to another control (tcontrol.setfocus)

Inviato tramite il client di Posta WPS
Il 08/lug/2017 11:25 PM, hfiandor via Lazarus <[hidden email]> ha scritto:

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
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Lazarus] quitar foco a un componente get off focus

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
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
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Loading...