Page 1 of 1
TDrawLineTool disable line display outside ChartRect
Posted: Fri Feb 17, 2017 9:33 am
by 16479705
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.
Re: TDrawLineTool disable line display outside ChartRect
Posted: Fri Feb 17, 2017 9:43 am
by yeray
Hello,
I could reproduce the problem:
- Tee9New_win64Delphi24_2017-02-17_10-40-51.png (177.9 KiB) Viewed 6256 times
You can change from GDIPlus to GDI (as in v8):
- Tee9New_win64Delphi24_2017-02-17_10-42-16.png (173.36 KiB) Viewed 6252 times
Or you can activate "Full Repaint" property for the Draw Line Tool:
- Tee9New_win64Delphi24_2017-02-17_10-43-03.png (134.99 KiB) Viewed 6251 times
Re: TDrawLineTool disable line display outside ChartRect
Posted: Fri Feb 17, 2017 10:46 am
by 16479705
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.
Re: TDrawLineTool disable line display outside ChartRect
Posted: Fri Feb 17, 2017 11:34 am
by yeray
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.