BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

newbie needs to draw polygons in Delphi 6

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
MJH
Guest





PostPosted: Wed Jan 05, 2005 7:13 pm    Post subject: newbie needs to draw polygons in Delphi 6 Reply with quote



What function do I use to draw various shapes in Delphi 6? I need to draw
circles, lines, and rectangles on a form, with the option to fill them in
with color.

thanks


Back to top
Jeff
Guest





PostPosted: Sat Jan 08, 2005 1:38 pm    Post subject: Re: newbie needs to draw polygons in Delphi 6 Reply with quote



Take a take a look at our MetaDraw control
MetaDraw is an ActiveX ( OCX) component which
you can use in your Delphi application.
You can set up MetaDraw to allow end-users to draw
with their mouse or you can create drawings by code.
To allow users to draw with their mouse is easy.
Just put some menu or buttons on your form and in
each button set MetaDraw's EditMode property to the
desired editing mode - line, rectanlge, ellipse, text, etc.
You can also set the EditMode to allow users to select
objects already drawn, and move, rotated or resize them.
To allow users to fill with a color, have them select the
shape ( editmode = select) and then have another menu
to allow them to pick the color - when they do, just set
the property CURRENT to Obj_Selected ( pointing to selected
objects ) and then set the FillColor property to the desired color.

If you want to draw by code, simply call MetaDraw's AddObject
method and specify the desired shape and coordinates. Then
set the FillColor property as desired

It's that easy.

You can then Save the entire drawing using MetaDraw's SavePicture
method, or Print using ExportDC. You can also allow Scrolling
and Zooming.



* * Please include a copy of this message with your reply

Jeff Bennett
[email]Jeff (AT) Bennet-Tec (DOT) Com[/email]

* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
* WWW.Bennet-Tec.Com
=================== ===================

Back to top
Thaddy de Koning
Guest





PostPosted: Wed Jan 12, 2005 4:28 pm    Post subject: Re: newbie needs to draw polygons in Delphi 6 Reply with quote



MJH wrote:
Quote:
What function do I use to draw various shapes in Delphi 6? I need to draw
circles, lines, and rectangles on a form, with the option to fill them in
with color.

thanks


Dr Steve Evans (steve (AT) lociuk (DOT) com) wrote a very good explanation

that is on the Borland Community website under Delphi sourcode.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.