I wanna change Print Preview caption..

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Ryderbay
Newbie
Newbie
Posts: 4
Joined: Wed Mar 24, 2004 5:00 am
Location: Korea
Contact:

I wanna change Print Preview caption..

Post by Ryderbay » Tue Apr 13, 2004 2:37 am

I wanna change Print Preview caption.
(ex. TeeChart Print Preview -> My Preview Message)

so, I bought TeeChart with Source and changed ChartPreview.Caption at Object Inspector and Caption of TChartPreview.Create method on TeePrevi.pas.

But I can't build all projects because of ChartPreview.CBPrinters and TeePreviewPanel1 Error.
And I cannot change the caption. :(

How can I change the Print Preview caption with My New Message?

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Apr 13, 2004 9:42 am

Hi,

you can change it by using the following code :

Code: Select all

ChartPreviewer1.Title := 'My Custom Title';

Ryderbay
Newbie
Newbie
Posts: 4
Joined: Wed Mar 24, 2004 5:00 am
Location: Korea
Contact:

I cannot find out the definition of ChartPreviewer1

Post by Ryderbay » Wed Apr 14, 2004 1:12 am

Thank you but...
I cannot find out the definition of ChartPreviewer1. :cry:
Can you write full code include "uses" and definition(create)?

Running Delphi7 and Teechart Pro 7

==> Thank you! I got it!
I succeed to change the title~ :D

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Apr 14, 2004 8:02 am

Hi,
Can you write full code include "uses" and definition(create)?
You only must add a ChartPreviewer component (from the TeeChart tab) on the form and assign the Chart.

Post Reply