Page 1 of 1

Delphi fontdialog compatiblity?

Posted: Wed Dec 02, 2015 7:32 pm
by 16475383
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

Re: Delphi fontdialog compatiblity?

Posted: Thu Dec 03, 2015 11:39 am
by yeray
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;

Re: Delphi fontdialog compatiblity?

Posted: Thu Dec 03, 2015 2:39 pm
by 16475383
Wonderful!