Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Focus (https://www.delphipraxis.net/16383-focus.html)

MatthiasW 16. Feb 2004 12:00


Focus
 
Hallo,

ich programmiere ein control mit einer funktion die nur zur Verfügung stehen soll wenn das parent - form den Focus hat. Wie kann ich jetzt aus meiner Komponente heraus feststellen, ob das übergeordnete Fenster den Focus hat?

Ich habe es schon mit "GetParentForm" versucht und dann die Eigenschaft "Focused" abgefragt, hat aber leider nicht funktioniert.

Mfg Matthias

BenjaminHelbig 16. Feb 2004 15:23

Re: Focus
 
Ich würde den Systemweiten Fokus abfragen, darüber kannste dann ermitteln, welches Handle aktuell den Fokus hat.

Grüßle Ben


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:33 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