Page 1 of 1
dialog box for plot symbols?
Posted: Thu Nov 12, 2015 7:37 pm
by 16475383
I would like to display a dialog box to enable an end user to select the point symbols they would like to have used in a chart. Is there one within TeeChart? If not, is there a convenient source for the bitmaps for the symbols so I can create my own dialog?
Thanks,
Re: dialog box for plot symbols?
Posted: Fri Nov 13, 2015 4:00 pm
by yeray
Hello,
TeeChart has a TeePoEdi (.pas and .dfm) used in the Chart editor to allow changing the pointer in some series like TPointSeries or TLineSeries.
It looks like this:
- PointerStyle.png (28 KiB) Viewed 8389 times
Re: dialog box for plot symbols?
Posted: Tue Nov 17, 2015 12:58 am
by 16475383
Thanks but that is too much for what I want. I think it might overwhelm users with too many options. I would just like to display something that allows the selection of the symbol and its color and size. It might be possible to extract that form the TeePoEdi.pas unit but I do not have the source code.
Re: dialog box for plot symbols?
Posted: Tue Nov 17, 2015 9:03 am
by yeray
Hello,
You can open the pointer editor without having the sources as follows:
Code: Select all
uses Series, TeePoEdi;
var Series1: TLineSeries;
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1:=Chart1.AddSeries(TLineSeries) as TLineSeries;
Series1.FillSampleValues(10);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
EditSeriesPointer(Self, Series1.Pointer);
end;
Re: dialog box for plot symbols?
Posted: Tue Nov 17, 2015 1:08 pm
by 16475383
ok thanks I will look at it.