Im looking for a function that does that, because AFAIK, I cant use a Tpoint in Mouse(x, y, rx, ry, button). Searching in the functionlist, I came up with nothing...
Printable View
Im looking for a function that does that, because AFAIK, I cant use a Tpoint in Mouse(x, y, rx, ry, button). Searching in the functionlist, I came up with nothing...
You can access the x and y inside the point.
Say your point is called myPoint, you can get the x inside it like this:
Simba Code:myPoint.X
So, for your mouse you could do this:
Simba Code:Mouse(myPoint.X, myPoint.Y, rx, ry, button)
Tpoint.x,TPoint.y
There ya go
Thanks guys! Forgot I could do that!
yeh u can use tpoint in mouse lol haha yeah juss gotta declare ....
SCAR Code:point=point.x and point.y
If you want a procedure that means you can store the values if you wish to use them at a later point:
Simba Code:procedure TPointToXY(TP: TPoint; var x,y: integer);
begin
x := TP.x;
y := TP.y;
end;