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 setzen im StringGrid (https://www.delphipraxis.net/6066-focus-setzen-im-stringgrid.html)

Hansa 28. Jun 2003 11:54


Focus setzen im StringGrid
 
Wie setze ich den Focus auf eine bestimmte Zelle in einem Stringgrid ? Also z.B.: in Zelle (1,2) passiert was und in Zelle (3,5) soll daraufhin etwas eingegeben werden. Der Cursor soll dann dort hinspringen.

Daniel B 28. Jun 2003 13:29

Hallo Hansa,

damit geht das. It's so easy... :wink:
Delphi-Quellcode:
procedure TForm1.Button2Click(Sender: TObject);
begin
  StringGrid1.Row := 5;
  StringGrid1.Col := 3;
end;
Grüsse, Daniel :hi:

Hansa 28. Jun 2003 13:34

Ja, ist fast zu einfach um drauf zu kommen, aber ich weiß am besten wo die Antwort her ist. 8) 8) 8)


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:55 Uhr.

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