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/)
-   -   OnKeyDown-Ereignis (https://www.delphipraxis.net/168514-onkeydown-ereignis.html)

Noobmaster 25. Mai 2012 18:29

OnKeyDown-Ereignis
 
Hallo Leute,

Mein Stringgrid besitzt ein OnKeyDown-Ereignis. Eine Komponente außerhalb des Stringgrids reagiert auf ein OnClick-Ereignis und markiert im Stringgrid eine bestimmte Zelle. Drückt man nun eine Taste, wird logischerweise das OnKeyDown-Ereignis des Stringgrids nicht mehr ausgelöst.
Wie "aktiviere" ich das Stringgrid nun wieder, sodass es auf einen Tastendruck reagiert?

Danke schonmal!

DeddyH 25. Mai 2012 18:35

AW: OnKeyDown-Ereignis
 
StringGrid.SetFocus?

Noobmaster 25. Mai 2012 19:09

AW: OnKeyDown-Ereignis
 
Zitat:

Zitat von DeddyH (Beitrag 1168128)
StringGrid.SetFocus?

Genial, danke :-D


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