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 "fokusiertes" Control (auch TGraphicControl) finden (https://www.delphipraxis.net/170509-fokusiertes-control-auch-tgraphiccontrol-finden.html)

ralfiii 20. Sep 2012 16:29

"fokusiertes" Control (auch TGraphicControl) finden
 
Wenn ich auf ein TGraphicControl, z.B. ein TShape clicke kriegt das Control ja sämtliche folgenden MouseMove-Messages - auch wenn die Maus nicht mehr über dem Control ist - bis die Maustaste losgelassen wird.

Fein.

Ich setze nun auf das selbe Formular einen Timer und im OnTimer will ich herausfinden welches Control grad diesen "Fokus" hat (ist ja nicht der Fokus im Sinn von Form.ActiveControl).
Wie find ich das raus?
Danke!

Ralf

Uwe Raabe 20. Sep 2012 16:34

AW: "fokusiertes" Control (auch TGraphicControl) finden
 
GetCaptureControl

ralfiii 21. Sep 2012 12:10

AW: "fokusiertes" Control (auch TGraphicControl) finden
 
Perfekt, danke!


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