Solved

How can i print varios lines in a Canvas of form...

Posted on 1999-01-28
1
129 Views
Last Modified: 2010-05-18
How can i print varios lines in a Canvas of form for example:

i have the form, i determine the center of the form then the user want draw an polygon regular of 5 sides and with the lines drawed stared of the point center of the polygon to the vertices
Any idea?

atte kok77




 
0
Comment
Question by:jamiguel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

by:
inthe earned 0 total points
ID: 1363739
hi there ,
use the tpoint like so:
procedure TForm1.Button1Click(Sender: TObject);
var
    pts : array[0..3] of TPoint;
begin
    pts[0] := Point(100,100);
    pts[1] := Point(150,300);
    pts[2] := Point(200, 50);
    pts[3] := Point(250, 175);
PolyBezier(Canvas.Handle, pts, 4);
end;

this would draw a curve but just add amount of points to array
and plot your polygon with the starting point being the center of the canvas

Regards Barry.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question