Martifan 5 Posted October 28, 2020 Hello everyone, please tell me how to draw a route between point A to point B? on delphi, iOS Share this post Link to post
Marat1961 17 Posted November 1, 2020 I think that's how it will work! DrawLine (A, B); Share this post Link to post
Martifan 5 Posted November 1, 2020 11 hours ago, Marat1961 said: I think that's how it will work! DrawLine (A, B); Delphi 10.4.1 Draws crookedly, the lines go somewhere above Share this post Link to post
Marat1961 17 Posted November 2, 2020 (edited) Let's try to draw a straight line from point A to point B. Put a button on the form and write in the onClick handler: TPoint = record x, y: Integer; end; procedure DrawLine(A, B: TPoint); begin Form1.Canvas.MoveTo(A.x, A.y); Form1.Canvas.LineTo(B.x, B.y); end; A.x: = 0; A.y: = 0; B.x: = 100; B.y: = 10; DrawLine(A, B); Edited November 2, 2020 by Marat1961 Share this post Link to post