Font size of TRectangleTool

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Font size of TRectangleTool

Post by franckgar » Thu Mar 30, 2006 11:38 am

Hi,
I want to modify the font size of a TRectangleTool but I discovered that several values are not taken into account : 6, 7, 9, 11, ....
Why this limitation on the font size ?
How can I know the font size allowed ?

Thanks
Franck

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

Post by Narcís » Thu Mar 30, 2006 11:50 am

Hi Franck,

All values are considered, just try adding a TChart with a TRectangleTool and two buttons on a form an run:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  ChartTool1.Shape.Font.Size:=6;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ChartTool1.Shape.Font.Size:=ChartTool1.Shape.Font.Size+1;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  ChartTool1.Shape.Font.Size:=ChartTool1.Shape.Font.Size-1;
end;
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

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Post by franckgar » Thu Mar 30, 2006 1:08 pm

For the MS SANS SERIF font, the size 6 7 9 11 are not take into account by the TRectangle tool.

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

Post by Pep » Mon Apr 03, 2006 10:18 am

Hi,

this depends on the Fonts you have installed on your system.

Post Reply