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 596

Summary: In QuickReport Legend not visible with Legend Position Top or Bottom
Product: VCL TeeChart Reporter: Bert Kreisel <bert.kreisel>
Component: LegendAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: david, sandra
Priority: Normal    
Version: 131119   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version: RAD 2010
Attachments: TQRChart legend alignment Problem

Description Bert Kreisel 2014-02-24 07:52:14 EST
In TQRChart the Legend is not visible (design time and run time) if Legend Position is Top or Bottom
Comment 1 sandra pazos 2014-02-26 05:07:43 EST
Created attachment 102 [details]
TQRChart  legend alignment Problem
Comment 2 david berneda 2014-03-13 12:33:43 EDT
Just a quick note: TQRChart is intended to be used only inside QReports, not standalone. 

That might be the cause.
Comment 3 david berneda 2014-03-24 13:48:40 EDT
Fixed. The Chart.Width property was being used instead of Chart.ChartBounds width. 

This is correct for normal charts, but QuickReport QRChart is special as it has a Width of "1". That "1" small width was confusing the Legend when located horizontally at top or bottom.

This very small width (1) is necessary to hide it at design-time when pasted onto a QReport, otherwise we'll get two charts, the (hidden) design-time chart and the metafile chart that QRChart displays.
Comment 4 Bert Kreisel 2014-03-25 03:40:01 EDT
Could you give me the changed source lines please?

Thanks in advance.