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 - Drawing ticks LeftAxis and RightAxis differs
Summary: Drawing ticks LeftAxis and RightAxis differs
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Axis (show other bugs)
Version: 150120
Hardware: PC Windows
: --- minor
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-15 08:24 EST by Михаил
Modified: 2015-05-22 04:30 EDT (History)
3 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version: RAD XE5


Attachments
Drawing ticks LeftAxis and RightAxis differs (12.59 KB, application/octet-stream)
2015-02-15 08:24 EST, Михаил
Details
Different draw left and right axes (27.57 KB, image/jpeg)
2015-02-17 16:05 EST, Михаил
Details
Example (5.17 KB, application/octet-stream)
2015-02-23 09:40 EST, Михаил
Details
2015.15 - problem is not solved (398.33 KB, application/x-7z-compressed)
2015-05-22 04:30 EDT, Михаил
Details

Note You need to log in before you can comment on or make changes to this bug.
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