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 1139

Summary: Drawing ticks LeftAxis and RightAxis differs
Product: VCL TeeChart Reporter: Михаил <belmic>
Component: AxisAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: minor CC: belmic, david, sandra
Priority: ---    
Version: 150120   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version: RAD XE5
Attachments: Drawing ticks LeftAxis and RightAxis differs
Different draw left and right axes
Example
2015.15 - problem is not solved

Description Михаил 2015-02-15 08:24:48 EST
Created attachment 401 [details]
Drawing ticks LeftAxis and RightAxis differs

If the rendering is set to GDI+,
drawing ticks LeftAxis and RightAxis is different (with the same line style settings)
Comment 1 Михаил 2015-02-17 16:05:04 EST
Created attachment 402 [details]
Different draw left and right axes
Comment 2 sandra pazos 2015-02-23 08:18:26 EST
The problem occurs if you set Left and Right ticks and Minorticks width to 0.
Comment 3 Михаил 2015-02-23 09:20:51 EST
The ticks and minorticks width of 0 is set specifically because it allows drawing the line width of 1 pixel (on the left axis of the screenshot). If you set the ticks and minorticks width to 1 pixel, then drawing the line is blurred (when anti-aliasing is enabled)
Comment 4 Михаил 2015-02-23 09:40:41 EST
Created attachment 403 [details]
Example
Comment 5 david berneda 2015-05-13 11:39:17 EDT
Fixed.
The problem was Right axis using a different GDI+ canvas method than Left axis to display ticks. (Right axis calls HorizLine3D instead of DoHorizLine)

Setting Pen.Width:=0 should also disable GDI+ antialias, otherwise GDI+ will still use a width of more than 1.0 to paint the lines.

Changes done in TeeGDIPlus.pas unit, now make all GDI+ drawline methods to disable antialias when Pen.Width=0
Comment 6 Михаил 2015-05-22 04:30:57 EDT
Created attachment 453 [details]
2015.15 - problem is not solved