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 Position im Tstringrid (https://www.delphipraxis.net/3447-position-im-tstringrid.html)

~Freeze~ 13. Mär 2003 12:12


Position im Tstringrid
 
Hi zusammen

wie kann ich rausfinden wo ich mich im StringGrid befinde??

Thx for help!

Mfg
Freeze

sakura 13. Mär 2003 12:17

Die Eigenschaften Row und Col (oder Column) sollten die Infos eigentlich bereithalten.

...:cat:...

~Freeze~ 13. Mär 2003 12:42

das ist schon klar ...

was ich meinte war:
wenn jmd im StringGrid klickt, wie weiß ich wo geklickt wurde??

Daniel B 13. Mär 2003 16:39

Hallo,

das hilft:
Delphi-Quellcode:
procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol,
  ARow: Integer; var CanSelect: Boolean);
begin
  Label1.Caption := IntToStr(ACol);
  Label2.Caption := IntToStr(ARow);
end;
Grüsse, Daniel :hi:


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