Autor Beitrag
opfer.der.genauigkeit
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754
Erhaltene Danke: 1



BeitragVerfasst: So 01.06.03 01:22 
Hallo,

Vielleicht kann mir ja jemand weiterhelfen.
Ich würde gerne die Postion, einer Zelle in einem Grid, auf dem Bildschirm ermitteln.

_________________
Stellen Sie sich bitte Zirkusmusik vor.


Zuletzt bearbeitet von opfer.der.genauigkeit am Di 03.06.03 10:29, insgesamt 1-mal bearbeitet
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: So 01.06.03 03:23 
Zum Beispiel so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol,
  ARow: Integer; var CanSelect: Boolean);
var
 Rechteck: TRect;
begin
 Rechteck := StringGrid1.CellRect(ACol,ARow);
 Showmessage(IntToStr(Form1.Left+StringGrid1.Left+Rechteck.Left)+':'+IntToStr(Form1.Top+StringGrid1.Top+Rechteck.Top));
end;

_________________
If accidentally read, induce vomitting.
opfer.der.genauigkeit Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754
Erhaltene Danke: 1



BeitragVerfasst: Di 03.06.03 10:29 
Danke für die Hilf.

Aber Form.Left gibt immer 0.
Hab auch gefunden, was ich gesucht habe.
ClientToScreen und ScreenToClient.

_________________
Stellen Sie sich bitte Zirkusmusik vor.