Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-07

quitar foco a un componente get off focus

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

hfiandor

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/20170708/4fe3400e/attachment.html>

Reply by email

Denis Kozlov
to hfiandor: Dear colleagues Estimados listeros: I have a form with a button that get focus to make…
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

hfiandor wrote 27 lines
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>

Reply by email