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 

Need a drawning or painting canvass component

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Steven O.
Guest





PostPosted: Fri Nov 14, 2003 4:37 pm    Post subject: Need a drawning or painting canvass component Reply with quote



Just getting started with C++ Builder 6. I need a component where I
can do the following:

1. Draw the component on the form, as a rectangle. Then...
2. Use the component as a kind of canvas, to draw designs using code.
For starters, I need some kind of function that looks (roughly) like:

MyCanvas->DrawDot(x coordinate, y coordinate, RGB color params)

From there I intend to develop routines that can drawn lines, circles,
ovals, rectanges, etc. (Although if the component already has such
routines, that would be nice!)

I can't seem to find any such component in CBC6, except possibly the
PaintBox component under System (at least it has the right name),
which from the Help seems to match the description. But I'm not clear
on a few things:

(A) When you put this on a form, does it let you draw directly all
over the form (which I *don't* want), or does what you draw stay
within the rectangle?

(B) And, do you first have to draw something, and then load it into
the PaintBox (again, I don't want that); or can you issue the draw
commands, and they are executed immediately (which I do want)?

(C) Finally, in looking at the help for that component, I did not see
anything like a DrawDot command. Or do you draw a dot by drawing a
line from and to the same point?

Any tips, and any links to additional reading -- or links to
downloadable components that might be of further help to me -- would
be appreciated. (Come to think of it, another newbie question -- can
the component palettes be extended or enhanced with additional,
third-party components?)

Thanks in advance for all replies.

Steve O.


Standard Antiflame Disclaimer: Please don't flame me. I may actually *be* an idiot, but even idiots have feelings.
Back to top
Jeff Bennett
Guest





PostPosted: Sun Dec 14, 2003 12:19 am    Post subject: Re: Need a drawning or painting canvass component Reply with quote



Steven,

I just saw your note below.
Take a look at our MetaDraw cou describe.

MetaDraw presents a rectangular drawing area.
Within this area you can draw by code
and you can even optionally allow end-users to draw directly.

MetaDraw will allow you to draw lines or shapes, and will also allow
you to add in text and other images. Each element of the picture
can be independantly addressed and dynamically modified ( change the
color of some existing shape for instance ). The entire image may be
zoomed, scrolled, printed, copied to clipboard, saved.

For further info visit www.Bennet-Tec.com
or drop me a note by e-mail and I'll be happy
to answer any questions. Note that while we do
not have any BC++ Samples included in the install kit
there are samples for VB, VC++ and Delphi.

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


Steven O. <Steven (AT) OpZZREMOVE_ALL_Zs_AND_ALL_BETWEEN_ZZComm (DOT) com> wrote

Quote:
Just getting started with C++ Builder 6. I need a component where I
can do the following:

1. Draw the component on the form, as a rectangle. Then...
2. Use the component as a kind of canvas, to draw designs using code.
For starters, I need some kind of function that looks (roughly) like:

MyCanvas->DrawDot(x coordinate, y coordinate, RGB color params)

From there I intend to develop routines that can drawn lines, circles,
ovals, rectanges, etc. (Although if the component already has such
routines, that would be nice!)

I can't seem to find any such component in CBC6, except possibly the
PaintBox component under System (at least it has the right name),
which from the Help seems to match the description. But I'm not clear
on a few things:

(A) When you put this on a form, does it let you draw directly all
over the form (which I *don't* want), or does what you draw stay
within the rectangle?

(B) And, do you first have to draw something, and then load it into
the PaintBox (again, I don't want that); or can you issue the draw
commands, and they are executed immediately (which I do want)?

(C) Finally, in looking at the help for that component, I did not see
anything like a DrawDot command. Or do you draw a dot by drawing a
line from and to the same point?

Any tips, and any links to additional reading -- or links to
downloadable components that might be of further help to me -- would
be appreciated. (Come to think of it, another newbie question -- can
the component palettes be extended or enhanced with additional,
third-party components?)

Thanks in advance for all replies.

Steve O.


Standard Antiflame Disclaimer: Please don't flame me. I may actually *be* an idiot, but even idiots have feelings.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.