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 

drawing and printing

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Thomas Willms
Guest





PostPosted: Mon Oct 10, 2005 5:42 pm    Post subject: drawing and printing Reply with quote



Hello,
Being a Newby , I am using delphi 5 (under XP) and tried the following

in Unit M:
Graphic methods (calculating values and using canvas.Moveto, canvas.Lineto,
canvas.Pixel etc)

in Unit N:
1.procedure: calling all functions within one function with name "do_it"
2. procedure: for image on screen : calling function "do_it" in the
following way:

with paintbox.canvas do
begin
do-it
end;

planning to do in the same way
3. procedure: for printer: calling function "do_it" in the following way:
with printer do
begin
// printer stuff ? ? how adapt to printer
do_it
end;

even the 2. procedure doesn't work , but if I replace " canvas" by
FormN.paintbox.canvas in each method it works
He accepts all commands of the type canvas.method but there is nothing on
the screen.....

Is there a simple bug somewhere or isn't it possible to make him applying
all canvas.methods to the paintbox in this way?
How can I do it?

Thanks


Back to top
Charles Hacker
Guest





PostPosted: Mon Oct 10, 2005 11:29 pm    Post subject: Re: drawing and printing Reply with quote



Thomas Willms wrote:
Quote:

even the 2. procedure doesn't work , but if I replace " canvas" by
FormN.paintbox.canvas in each method it works
He accepts all commands of the type canvas.method but there is nothing on
the screen.....

I take it your confusing post is about trying to print the paintbox
image?

We would need more infomration, possibly some of you code snips, to be
able to help.

--
Charles Hacker
Lecturer in Electronics and Computing
School of Engineering
Griffith University - Gold Coast
Australia

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics 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.