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

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

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

Post by bertrod » Thu Jul 26, 2007 3:07 pm

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

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Thu Jul 26, 2007 3:57 pm

TSeriesBandTool.DrawBehindSeries?
Regards,
Alexander

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Fri Jul 27, 2007 6:44 am

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:

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Fri Jul 27, 2007 9:35 am

Well, try then ExchangeSeries. It allows you to change order of series in run-time
Regards, Alexander

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Fri Jul 27, 2007 11:58 am

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)

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Fri Jul 27, 2007 12:25 pm

Nice to hear :oops:
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Mon Jul 30, 2007 7:44 am

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

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Mon Jul 30, 2007 10:21 am

Try TChartAxes.Behind=False
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Mon Jul 30, 2007 12:00 pm

9047589 wrote:Try TChartAxes.Behind=False
It works thanks. :P

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Mon Jul 30, 2007 12:13 pm

Nice to hear :wink:
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009

Post Reply