Einzelnen Beitrag anzeigen

StefanDP

Registriert seit: 11. Apr 2004
294 Beiträge
 
#3

Re: 2D Array und MausPosition

  Alt 1. Jun 2004, 17:10
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
var
  p: TPoint;
begin
  GetCursorPos(p);
  Button1.Caption := 'X: ' + IntToStr(p.X) + ', Y: ' + IntToStr(p.Y);
end;
das ist doch mal ein anfang?!
  Mit Zitat antworten Zitat