Page 1 of 1

Formatting Editor

Posted: Mon Feb 14, 2005 6:07 pm
by 9336311
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

Posted: Wed Feb 16, 2005 2:32 pm
by Pep
Hi Peter,

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

Editor

Posted: Wed Feb 16, 2005 2:44 pm
by 9336311
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

Posted: Mon Feb 21, 2005 3:19 pm
by Pep
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.