Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Fokus Problem (https://www.delphipraxis.net/118153-fokus-problem.html)

MrMyagi 1. Aug 2008 13:39


Fokus Problem
 
Moin,
wie bekomme ich den Fokus von der
Combobox weg??
Ich habe ein Programm geschrieben, mit welchem man erst eine
Schriftart aus der Combobox wählen und dann ein Label auf
auf der Form bewegen kann, welches diese Schriftart annimmt.
Mein Problem jedoch ist, dass die Combobox immer im Fokus bleibt,
dh immer wenn ich die Pfeiltasten betätige ändert sich auch die
Schriftart.

mfg, Nico

stahli 1. Aug 2008 13:41

Re: Fokus Problem
 
if ComboBox.Focused then
xyz.SetFocus;

MrMyagi 1. Aug 2008 13:43

Re: Fokus Problem
 
Funktioniert perfekt,
Danke

toms 1. Aug 2008 13:43

Re: Fokus Problem
 
Oder
Delphi-Quellcode:
Self.FocusControl(Nil);


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:34 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz