So, to move on the subject, all i want to know and be solve is : Since delphi cant do Linestyle with width > 1, that means you use a custom function to draw lines with widths > 1.
Can you tell me if you use that function when the width is equal to 1 or not, because if its not, you should do it and it should solve my problem.
Thanks
MetaFile loosing linestyle
Re: MetaFile loosing linestyle
Hi GoToXY,
Yes, I saw your project and I proposed a solution that works on it. But, of course, as you are trying to achieve something a little bit different in your final application, the workaround isn't appropriate for you.
Then, I thought that you have reproduced the problem drawing a Metafile created without any TeeChart intervention and that's what I was interested to see. I think I haven't understood you well.
Anyway, back to TeeChart, yes, we have a TeeSetTeePen procedure at TeCanvas.pas, that applies some settings to the pen and yes, it proceeds in a different way with lines wither than 1.
In your specific case, I think that using TeeCheckPenWidth as true, it could solve the problem. Note that this boolean is used at the mentioned procedure, and set as false by default, to fix a previous problem with some printers. So please, add the TeCanvas unit to the uses clause and the following line before creating the metafile from the chart or at OnCreate:
Yes, I saw your project and I proposed a solution that works on it. But, of course, as you are trying to achieve something a little bit different in your final application, the workaround isn't appropriate for you.
Then, I thought that you have reproduced the problem drawing a Metafile created without any TeeChart intervention and that's what I was interested to see. I think I haven't understood you well.
Anyway, back to TeeChart, yes, we have a TeeSetTeePen procedure at TeCanvas.pas, that applies some settings to the pen and yes, it proceeds in a different way with lines wither than 1.
In your specific case, I think that using TeeCheckPenWidth as true, it could solve the problem. Note that this boolean is used at the mentioned procedure, and set as false by default, to fix a previous problem with some printers. So please, add the TeCanvas unit to the uses clause and the following line before creating the metafile from the chart or at OnCreate:
Code: Select all
TeeCheckPenWidth:=true;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: MetaFile loosing linestyle
haaaaa!! oh yeah now you really make someone happy Yeray. 100% what i was looking for. Thanks for the hint about the printer, so if i see something weird about printing, ill turn that off.
Im sorry, im the one who seems to not have understood you about the Delphi Bug. In fact, it as the same effect of the TChart without using "TeeCheckPenWidth:=true;" I've attached a simpleApplication for you to see it.
Again, thanks a lot and i really appreciate the quality of the support you guys provide. It show me that we have spent money at the right place buying TeeChart
BTW: I heared you guys are working on a flash version with a lil bit of interactivity... if you need beta tester, im your man hehehe
Im sorry, im the one who seems to not have understood you about the Delphi Bug. In fact, it as the same effect of the TChart without using "TeeCheckPenWidth:=true;" I've attached a simpleApplication for you to see it.
Again, thanks a lot and i really appreciate the quality of the support you guys provide. It show me that we have spent money at the right place buying TeeChart
BTW: I heared you guys are working on a flash version with a lil bit of interactivity... if you need beta tester, im your man hehehe
- Attachments
-
- MetaFileLineStyle.zip
- Delphi Bug with MetaFile and LineStyle
- (8.18 KiB) Downloaded 612 times
Re: MetaFile loosing linestyle
Hi GoToXY, Sylvain?¿
Yes, I think that's the project I was asking you for, that demonstrates the delphi issue.
I'm glad to see that you are happy with that now. And thank you for the interest on the flash feature, but note that that's not an independent version! It's only an exportation feature that we're trying to improve a little bit.
Yes, I think that's the project I was asking you for, that demonstrates the delphi issue.
I'm glad to see that you are happy with that now. And thank you for the interest on the flash feature, but note that that's not an independent version! It's only an exportation feature that we're trying to improve a little bit.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 12
- Joined: Wed Jun 01, 2005 4:00 am
- Location: wellington
- Contact:
Re: MetaFile loosing linestyle
Hi, sorry for bringing up an old thread, but I'm having the similar problem.
What I did was I created a MetaFile with TeeCreateMetafile.
Then used TBaseReport.StretchDraw passing the MetaFile. (Rave reports).
It showed the linestyle correctly on the preview but not on the paper.
By the way I use TeeChartPro v7.12 with Delphi 2005.
TeeCheckPenWidth := true; doesn't work on mine since it's a const.
Thanks.
What I did was I created a MetaFile with TeeCreateMetafile.
Then used TBaseReport.StretchDraw passing the MetaFile. (Rave reports).
It showed the linestyle correctly on the preview but not on the paper.
By the way I use TeeChartPro v7.12 with Delphi 2005.
TeeCheckPenWidth := true; doesn't work on mine since it's a const.
Thanks.
Re: MetaFile loosing linestyle
From what i know, the const TeeCheckPenWidth will override the Regular pen from Delphi to a custom TeeChart Pen that dont mess the line style in a MetaFile. So, if TeeCheckPenWidth doesnt work, im clueless because it works for me.
Re: MetaFile loosing linestyle
Hi ChainSmokinCoder,
Could you please send us a simple example project we can run as-is to reproduce the problem here?
We are not planning to publish another v7 maintenance release but we can tell you if the problem is still reproducible with v8 (or next v2010).
Could you please send us a simple example project we can run as-is to reproduce the problem here?
We are not planning to publish another v7 maintenance release but we can tell you if the problem is still reproducible with v8 (or next v2010).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 12
- Joined: Wed Jun 01, 2005 4:00 am
- Location: wellington
- Contact:
Re: MetaFile loosing linestyle
Hi Yeray, I've created a new thread. Thanks for your reply.