Delphi fontdialog compatiblity?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
fjrohlf
Newbie
Newbie
Posts: 33
Joined: Mon Sep 07, 2015 12:00 am

Delphi fontdialog compatiblity?

Post by fjrohlf » Wed Dec 02, 2015 7:32 pm

Is there a way to use Delphi's fontdialog component to allow a user to select font properties at run time for titles etc.? That component returns a TFont but TeeChart uses TTeeFont. I could copy the individual parts, color, size, pitch, etc. from one to the other but that is somewhat inelegant. I was hoping that there would be a TeeChart equivalent to the standard fontdialog component.

Jim

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Delphi fontdialog compatiblity?

Post by Yeray » Thu Dec 03, 2015 11:39 am

Hi Jim,

EditTeeFont uses a TFontDialog. Here a simple example:

Code: Select all

uses TeeBrushDlg;

procedure TForm1.Button1Click(Sender: TObject);
begin
  EditTeeFont(Self,Chart1.Title.Font);
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

fjrohlf
Newbie
Newbie
Posts: 33
Joined: Mon Sep 07, 2015 12:00 am

Re: Delphi fontdialog compatiblity?

Post by fjrohlf » Thu Dec 03, 2015 2:39 pm

Wonderful!

Post Reply