Tchart on a pagecontrol with XP Manifest included
-
- Advanced
- Posts: 103
- Joined: Tue Mar 02, 2004 5:00 am
- Location: Bad Wurzach
- Contact:
Tchart on a pagecontrol with XP Manifest included
Hello, I have a chart on a pagecontrol and the xpman on it.
While the tabsheets of the pagecontrol appear white on XP the TChart still stays in clbtnface. This look bad. Is there a way to avoid this and using the XP look ?
While the tabsheets of the pagecontrol appear white on XP the TChart still stays in clbtnface. This look bad. Is there a way to avoid this and using the XP look ?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Thomas,
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Advanced
- Posts: 103
- Joined: Tue Mar 02, 2004 5:00 am
- Location: Bad Wurzach
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hello,
Thanks for the example project but I'm not able to reproduce what you report here. Using the project you sent the form, tabcontrol and chart are all in the same colour (default colour). Could you please check the project you sent? Should I do any special step to reproduce the issue here?
Thanks in advance.
Thanks for the example project but I'm not able to reproduce what you report here. Using the project you sent the form, tabcontrol and chart are all in the same colour (default colour). Could you please check the project you sent? Should I do any special step to reproduce the issue here?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 3
- Joined: Thu Jul 06, 2006 12:00 am
Hi Frank & Narcís,
I use XPman, too. And on my XP system is Luna activated. If I use XPMan in a project all things around TChart have the new style except TChart ...
@Narcís:
If you use my time Axis demo and put on a XPMan component you can see it, too. (My setup here D7 pro, XP with Luna).
I use XPman, too. And on my XP system is Luna activated. If I use XPMan in a project all things around TChart have the new style except TChart ...
@Narcís:
If you use my time Axis demo and put on a XPMan component you can see it, too. (My setup here D7 pro, XP with Luna).
Greetz Dominik
http://www.logview.info
http://www.logview.info
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Frank,
Thanks for the information. I've been able to reproduce the issue here and a solution is making the chart transparent by setting its color to clNone:
Thanks for the information. I've been able to reproduce the issue here and a solution is making the chart transparent by setting its color to clNone:
Code: Select all
Chart1.Color:=clNone;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 3
- Joined: Thu Jul 06, 2006 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Frank,
Thanks for the information but the problem seems to be at TPanel. TChart inherits from TPanel component and it doesn't work with XPman either as reported in Quality Central issues below:
http://qc.borland.com/wc/qcmain.aspx?d=2534
http://qc.borland.com/wc/qcmain.aspx?d=6795
Anyway, we haven't been able to get them working with your example application and a TPanel in BDS 2006. Can you please try if suggestions here work fine at your end?
Thanks for the information but the problem seems to be at TPanel. TChart inherits from TPanel component and it doesn't work with XPman either as reported in Quality Central issues below:
http://qc.borland.com/wc/qcmain.aspx?d=2534
http://qc.borland.com/wc/qcmain.aspx?d=6795
Anyway, we haven't been able to get them working with your example application and a TPanel in BDS 2006. Can you please try if suggestions here work fine at your end?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Frank,
Following up to this issue, another option is making the chart transparent modifying your example like this:
Following up to this issue, another option is making the chart transparent modifying your example like this:
Code: Select all
unit Unit12;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, TeeProcs, TeEngine, Chart, ComCtrls, XPMan, TeeComma,
StdCtrls;
type
TForm12 = class(TForm)
PageControl1: TPageControl;
TabSheet1: TTabSheet;
TabSheet2: TTabSheet;
XPManifest1: TXPManifest;
Chart1: TChart;
procedure FormCreate(Sender: TObject);
procedure Chart1BeforeDrawChart(Sender: TObject);
private
{ Private-Deklarationen }
Back : TBitmap;
public
{ Public-Deklarationen }
end;
var
Form12: TForm12;
implementation
{$R *.dfm}
procedure TForm12.Chart1BeforeDrawChart(Sender: TObject);
var rr: TRect;
begin
if not Assigned(Back) then
begin
Back:=TBitmap.Create;
Back.Width:=Chart1.Width;
Back.Height:=Chart1.Height;
rr := Chart1.BoundsRect;
rr.Top:= rr.Top + 50;
Back.Canvas.CopyRect(Chart1.ClientRect,Canvas,rr);
end;
if Chart1.Color=clNone then
Chart1.Canvas.Draw(0,0,Back);
end;
procedure TForm12.FormCreate(Sender: TObject);
begin
Chart1.Color:=clNone;
end;
end.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 3
- Joined: Thu Jul 06, 2006 12:00 am