How can I acces the flag "Show Page Number" ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
klaus
Newbie
Newbie
Posts: 4
Joined: Tue May 11, 2004 4:00 am

How can I acces the flag "Show Page Number" ?

Post by klaus » Wed Apr 25, 2007 2:34 pm

Hello,

how can I access the flag "Show Page Number".
I want to set/clear dynamic the page number.


Chart1 : TChart;

Chart1.Pages. ..........

Thanks

Reg Klaus

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Apr 25, 2007 2:54 pm

Hi Klaus,

To do that you need to add TeeTools unit in your uses section and use a TPageNumTool as shown below. Then you can make the tool active or not.

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var PageNum: TPageNumTool;
begin
  PageNum:=TPageNumTool.Create(self);
  Chart1.Tools.Add(PageNum);
  PageNum.Active:=true;
end;
When checking the "Show page number" checkbox at design-time the chart editor automatically creates the tool. So in that case you would only need to do that:

Code: Select all

  ChartTool1.Active:=true;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply