Formatting Editor

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Cyionics
Newbie
Newbie
Posts: 17
Joined: Thu Mar 11, 2004 5:00 am
Location: UK
Contact:

Formatting Editor

Post by Cyionics » Mon Feb 14, 2005 6:07 pm

Hi

I would like to use the new formatting editor in my project.
I can see how to use it say from a button on the toolbar of my own but is there a way to integrate it with the standard editor .

Rgds

Peter

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

Post by Pep » Wed Feb 16, 2005 2:32 pm

Hi Peter,

I'm not sure what you refer. How about using the ChartEditor component ?

Cyionics
Newbie
Newbie
Posts: 17
Joined: Thu Mar 11, 2004 5:00 am
Location: UK
Contact:

Editor

Post by Cyionics » Wed Feb 16, 2005 2:44 pm

In my case I want the user to be able to easily alter the Y axis parameters.
Normally they launch the editor from the commander toolbar and navigate to the axis settings and change them.
Then they have the usual ##00.xxx type delphi formatting.
In the new features dem there is a dialogue that allows the user to set scientific format, number of places etc all from a friendly interface.

The question is how was this doalogue intended to be included with say the Teecommander axis editor.

Rgds

Peter

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

Post by Pep » Mon Feb 21, 2005 3:19 pm

Hi Peter,

if you want to include a call to this dialog in the TeeCommander you can add a custom button ( you can see one example of this in the Demo features project (search for "custom buttons")) and then use similar code to the following :
uses TeeFormatting;
TFormatEditor.Change(Self,'###.##',Chart1.Axes.Left.IsDateTime);

Also, in case you want to modify some things of this dialog, if you are source code customer you can do the changes in the TeeFormatting unit and recompile the sources.

Post Reply