Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 817

Summary: Efect when zoom and fullrepaint
Product: .NET TeeChart Reporter: acastro
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: chris, narcis, sandra
Priority: ---    
Version: TeeChart.NET 2014 4.1.2014.02060   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=4&t=14687&p=66544&hilit=fullrepaint#p66544
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: screenshot

Description acastro 2014-06-27 03:03:13 EDT
Created attachment 233 [details]
screenshot

Sometimes I see the efect (dupplicating/triplicationg... ) of the screenshot, and I noticed it is due to FullRepaint. 

Project to reproduce
http://193.145.251.126/pnp/files/AIsMBAUwf/TestTeechart3.zip
Press button1, and then move the mouse with left button clicked to set the zoom
Comment 1 christopher ireland 2014-06-30 06:22:24 EDT
I think the problem here is that the zoom code should work with:

tChart1.Zoom.Pen.Visible = true;
tChart1.Zoom.FullRepaint = false;

which it presently doesn't. This has now been fixed. With this fix, even with 100,000 points in a Line series the zoom rectangle paints without duplicating itself. 

The original issue:

tChart1.Zoom.Pen.Visible = true;
tChart1.Zoom.FullRepaint = true;

still exists, and this is because repainting a chart with 100,000 points in a Line series is not instantaneous. This is precisely why the FullRepaint property was added into the Zoom code.