TDrawLineTool disable line display outside ChartRect

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Leigh
Newbie
Newbie
Posts: 2
Joined: Wed Dec 07, 2016 12:00 am

TDrawLineTool disable line display outside ChartRect

Post by Leigh » Fri Feb 17, 2017 9:33 am

Hello
I upgraded from TeeChart Pro V8.06 to TeeChart Pro 2016 recently and encountered an issue below.
I use TDrawLineTool to draw lines on a Chart. With version 8.06, if you move the chart by dragging the right mouse, lines outside the ChartRect area are not displayed. However, in version 2016, it displays the lines outside the ChartRect area; which generated a few problems for our projects (using TeeChart). I have confirmed this difference by comparing the Draw Lines Style examples for both V8 and 2016 in your What's New demo software.

Could anyone please let me know if there is a way to disable the line displays when they are outside the ChartRect area (as per V8.06)?

Thanks in advance.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TDrawLineTool disable line display outside ChartRect

Post by Yeray » Fri Feb 17, 2017 9:43 am

Hello,

I could reproduce the problem:
Tee9New_win64Delphi24_2017-02-17_10-40-51.png
Tee9New_win64Delphi24_2017-02-17_10-40-51.png (177.9 KiB) Viewed 6235 times
You can change from GDIPlus to GDI (as in v8):
Tee9New_win64Delphi24_2017-02-17_10-42-16.png
Tee9New_win64Delphi24_2017-02-17_10-42-16.png (173.36 KiB) Viewed 6231 times
Or you can activate "Full Repaint" property for the Draw Line Tool:
Tee9New_win64Delphi24_2017-02-17_10-43-03.png
Tee9New_win64Delphi24_2017-02-17_10-43-03.png (134.99 KiB) Viewed 6230 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Leigh
Newbie
Newbie
Posts: 2
Joined: Wed Dec 07, 2016 12:00 am

Re: TDrawLineTool disable line display outside ChartRect

Post by Leigh » Fri Feb 17, 2017 10:46 am

Hi, Yeray
Thanks for the prompt reply.
You can change from GDIPlus to GDI (as in v8)
In the example, there is an option (checkbox) to disable GDI+, but I can’t find anywhere to disable GDI+ in my project.
Or you can activate "Full Repaint" property for the Draw Line Tool
“Full Repaint” does the trick but once it is enabled the line colour scheme seems to have changed in that it is in one solid colour and changing transparency doesn’t seem to make any difference. When “Full Repaint” is disabled the line colour is variable depending on the background colour which is a good feature for our application.
As my project is in the final stage, I need to make sure that enabling “Full Repaint” doesn’t introduce any other unexpected effects (apart from the colour scheme). I tried to search the user guide but can’t find any description on “Full Repaint”. Could you please help me to understand the “Full Repaint” feature?
Many thanks for your help.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TDrawLineTool disable line display outside ChartRect

Post by Yeray » Fri Feb 17, 2017 11:34 am

Hello,
Leigh wrote: In the example, there is an option (checkbox) to disable GDI+, but I can’t find anywhere to disable GDI+ in my project.
Take a look at the options you have to change from GDIPlus to GDI here.
Leigh wrote: As my project is in the final stage, I need to make sure that enabling “Full Repaint” doesn’t introduce any other unexpected effects (apart from the colour scheme). I tried to search the user guide but can’t find any description on “Full Repaint”. Could you please help me to understand the “Full Repaint” feature?
Many thanks for your help.
When FullRepaint is set to true, the whole chart is repainted every time you drag the line. When FullRepaint is set to false, as per default, the line is XORed.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply