The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages - More
> Delphi Programming
|
printing Kylix graphics pages
Discuss printing Kylix graphics pages in the Delphi Programming forum on Dev Shed. printing Kylix graphics pages Delphi Programming forum discussing Delphi related topics including Kylix, C++ Builder, and more. Delphi is a high-performance language, originally based on the PASCAL language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

August 22nd, 2003, 02:06 PM
|
|
Junior Member
|
|
Join Date: Aug 2003
Location: San Diego
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
printing Kylix graphics pages
I'm developing Kylix GUIs that illustrate various configurations of our systems. I have nice pages filled with various components. How do I print these pretty graphics pages with the click of a button? Is there a utility within Kylix? So far, all I can find that's printable is the Canvas, but I'm not drawing on a Canvas. I want the entire GUI printed. How do I do it? 
|

August 26th, 2003, 11:57 AM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
Dunno specifically about Kylix, but in my Delphi 6, the TForm component has a print method. All I did was this:
Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
Form1.Print;
end;
and it printed an image with all the components in my form. Hope this helps 
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
|

August 26th, 2003, 07:30 PM
|
|
Junior Member
|
|
Join Date: Aug 2003
Location: San Diego
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Scorpions dude:
Thanks for the suggestion, but it doesn't appear to work for me. Maybe I'm missing something else that needs to be done, for example something in the uses clause, or some other code somewhere. Or maybe Kylix is different from Delphi. I basically taught myself Kylix and Object Pascal in order to write these GUIs, so please don't assume I know anything. Any other suggestions?
|

August 27th, 2003, 12:52 AM
|
|
Contributing User
|
|
Join Date: Oct 2000
Location: Back in the real world.
|
|
|
Kylix does definitively differ from Delphi.
Do your Controls have a PaintTo() method maybe? Also, in Delphi, a TForm has a GetFormImage() method, is this available?
|

August 27th, 2003, 01:02 PM
|
|
Junior Member
|
|
Join Date: Aug 2003
Location: San Diego
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I'm not sure how to see if PaintTo exists in the Controls. If I try Form1.Controls.PaintTo I get an error, but I've seen PaintTo in a list of TControlStyle types, but I don't know how to use that. I also do not find a GetFormImage method available on my form.
All I want to do is a bitmap dump of the form, with all visible components, to a postscript file. Then I could spawn a system command to print the postscript file. There must be a way to do this.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|