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
How can I acces the flag "Show Page Number" ?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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:
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;
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 |
Instructions - How to post in this forum |