 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Thomas Willms Guest
|
Posted: Mon Oct 10, 2005 5:42 pm Post subject: drawing and printing |
|
|
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
|
Posted: Mon Oct 10, 2005 11:29 pm Post subject: Re: drawing and printing |
|
|
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 |
|
 |
|
|
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
|
|