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 207

Summary: [TV52015252] Anyway, if you just create a chart, display it on a form, set Align t...
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: Other ComponentsAssignee: Steema Issue Manager <issuemanager>
Status: IN_PROGRESS ---    
Severity: major CC: david
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: VCL test to export series datetime values to JavaScript.

Description narcís calvet 2013-11-20 10:03:33 EST
If you just create a chart, display it on a form, set Align to alClient and then make it transparent (Chart.Color := clNone). Then when you resize the form the chart fails to repaint correctly. The problem is that the background doesn't get redrawn at all (TCustomTeePanelExtended.PaintBack) and this is all compounded by the including of WS_EX_TRANSPARENT in Params.ExStyle in TCustomTeePanel.CreateParams.

What I found was that it seemed better to comment out the WS_EX_TRANSPARENT code and then include some extra code in TCustomTeePanelExtended.PaintBack to call ThemeServices.DrawParentBackground if the window is transparent.
Code to reproduce:
procedure TForm1.FormCreate(Sender: TObject);
begin
 Chart1.Align:=alClient;
 Chart1.Color:=clNone;
end; [created:2010-10-28T13:18:00.000+01:00 reported by:narcis@steema.com reported in version:2010.01.11004 (TeeChart VCL)]
Comment 1 david berneda 2014-02-02 07:17:41 EST
The call to ThemeServices.DrawParentBackground seems to work fine.
I've added it to TeeProcs PaintBack method, but currently surrounded by a IFDEF USETHEMES, pending to verify if it works in all situations.
Comment 2 david berneda 2014-02-05 06:11:11 EST
Created attachment 82 [details]
VCL test to export series datetime values to JavaScript.
Comment 3 david berneda 2014-02-05 08:36:07 EST
The content of attachment 82 [details] has been deleted