Page 1 of 1

[TSeriesBandTool] How to draw behind or in front of a serie

Posted: Thu Jul 26, 2007 3:07 pm
by 9343260
Hello,

I noticed that the drawing of the TSeriesBandTool is sometimes over series and sometimes behind.

I mean that
- if I create a serie AFTER having created the TSeriesBandTool, the serie will be drawn OVER the SeriesBandTool.
- if I create a serie BEFORE having created the TSeriesBandTool, the serie will be drawn BEHIND the SeriesBandTool.

I would like to allow a kind of "Bring to front" and "Send to back" so the user can choose if he wants the TSeriesBandTool to hide other curves or not.


Any tip how to do it ?

Here is an illustration of the 2 cases I'm describing :

On the left the series is hidden by the TSeriesBandTool, and on the right the series is in front of the tool.

Image

Posted: Thu Jul 26, 2007 3:57 pm
by 9047589
TSeriesBandTool.DrawBehindSeries?
Regards,
Alexander

Posted: Fri Jul 27, 2007 6:44 am
by 9343260
9047589 wrote:TSeriesBandTool.DrawBehindSeries?
Regards,
Alexander
No, because DrawBehindSeries has an effect only with series which are linked to the TSeriesBandTool (tool.Series1 and tool.Series2), not on other series :cry:

Posted: Fri Jul 27, 2007 9:35 am
by 9047589
Well, try then ExchangeSeries. It allows you to change order of series in run-time
Regards, Alexander

Posted: Fri Jul 27, 2007 11:58 am
by 9343260
9047589 wrote:Well, try then ExchangeSeries. It allows you to change order of series in run-time
Regards, Alexander
Well done, I could manage to change series order using ExchangeSeries and now I can choose how I want my SeriesBandTool to be displayed.

Thanks a lot ! 8)

Posted: Fri Jul 27, 2007 12:25 pm
by 9047589
Nice to hear :oops:

Posted: Mon Jul 30, 2007 7:44 am
by 9343260
Hello,

I still have the same problem the axes, maybe you can help me again :

The SeriesBandTool hides all customAxes, even if they are created afterwards. See image below.

Any tip to show the customAxes in front of the seriesBandTool ?

Image

Posted: Mon Jul 30, 2007 10:21 am
by 9047589
Try TChartAxes.Behind=False

Posted: Mon Jul 30, 2007 12:00 pm
by 9343260
9047589 wrote:Try TChartAxes.Behind=False
It works thanks. :P

Posted: Mon Jul 30, 2007 12:13 pm
by 9047589
Nice to hear :wink: