Page 1 of 1

[Themes previewer] Customaxes are not visible

Posted: Thu Feb 23, 2006 3:54 pm
by 9343260
Hello,

I noticed that in the Theme Previewer, the customaxes are not visible. Is there a way to draw them in the TDraw3D ?

Posted: Mon Feb 27, 2006 3:17 pm
by Pep
Hi,

yes, this is by default, I'll put this on our wish list to be considered for further releases.
If you're source code customer you can add them in the PreviewChart adding some lines of code in the InitPreviewChart method, basically you'll have to iterate through alll the Series and custom axis and assign them to the PreviewChart, something like :

PreviewChart.Series[0].CustomVertAxis := Chart.CustomAxes[0].Create(Previewchart);

Posted: Mon Feb 27, 2006 4:07 pm
by 9343260
Hi,

Thanks. Now I have my customaxes on my previewChart. But when i chose another theme and I close the theme previewer, the customaxes disappear from my main chart :?

Posted: Tue Feb 28, 2006 2:35 pm
by 9343260
So, I can say that when I'm using this line :

Code: Select all

PreviewChart.Series[0].CustomVertAxis := Chart.CustomAxes[0].Create(Previewchart);
the Chart.CustomAxes[0] of my real chart is deleted. I guess it's when the themePreviewer is destroyed, it frees all cloned series and axes. This is strange, as we use the function "create" to build a new axis.

Got an idea about it ?

Posted: Thu Mar 02, 2006 11:06 am
by Pep
Hi,

yes, sorry I mistake me, you will have to use the following code (for each custom axis) :

Code: Select all

    PreviewChart.CustomAxes.Add;
    PreviewChart.CustomAxes[0].Assign(Chart.CustomAxes[0]);
    PreviewChart.Series[0].CustomVertAxis:= PreviewChart.CustomAxes[0];

Posted: Mon Mar 06, 2006 9:57 am
by 9343260
Thanks, looks better now.