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 - [TV52015252] Anyway, if you just create a chart, display it on a form, set Align t...
Summary: [TV52015252] Anyway, if you just create a chart, display it on a form, set Al...
Status: IN_PROGRESS
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Other Components (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-28 14:18 EDT by narcís calvet
Modified: 2014-02-05 08:36 EST (History)
1 user (show)

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


Attachments
VCL test to export series datetime values to JavaScript. (deleted)
2014-02-05 06:11 EST, david berneda
Details

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