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 743 - A 2D Chart with Axes.Bottom.Axis.Width=0 and Frame.Visible=False seems to calculate a ChartRect one pixel too large in height, only in GDI+
Summary: A 2D Chart with Axes.Bottom.Axis.Width=0 and Frame.Visible=False seems to cal...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-24 11:17 EDT by yeray alonso
Modified: 2014-04-24 11:17 EDT (History)
0 users

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


Attachments
chart rect too large (18.81 KB, application/octet-stream)
2014-04-24 11:17 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-04-24 11:17:11 EDT
Created attachment 188 [details]
chart rect too large

A 2D Chart with Axes.Bottom.Axis.Width=0 and Frame.Visible=False seems to calculate a ChartRect one pixel too large in height, only in GDI+

Here the code to reproduce it:

uses Series, TeCanvas;

var Chart1: TChart;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.Align:=alClient;
  Chart1.ColorPaletteIndex:=13;

  with Chart1 do
  begin
    View3D:=False;
    Axes.Bottom.Axis.Width:=0;
    Frame.Visible:=False;

    with AddSeries(TBarSeries) as TBarSeries do
    begin
      FillSampleValues;
      BarPen.Visible:=False;
    end;

    OnAfterDraw:=ChartAfterDraw;
  end;
end;

procedure TForm1.ChartAfterDraw(Sender: TObject);
begin
  with Chart1.Canvas do
  begin
    Brush.Style:=bsClear;
    Pen.Style:=psSolid;
    Pen.Color:=clRed;
    with Chart1.ChartRect do
      Rectangle(Rect(Left, Top, Right-((Right-Left)div 2), Bottom));
  end;
end;

See the images attached.
It didn't happen in v2013.08 and below.