Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1999-01-28
1
Medium Priority
?
131 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

688 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