TTree is slow in design with Teechart2013

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

TTree is slow in design with Teechart2013

Post by mivtee » Thu Jan 23, 2014 5:19 pm

Hi,
I have Delphi 2007 on windows 7, when I put some pictures in design in TTree it's very slow.
I tried this:

Code: Select all

(Tree2.Canvas as TGDIPlusCanvas).AntiAlias:=False;
: it doesn't change any thing.
I tried with

Code: Select all

 Tree.Canvas:=TTeeCanvas3D.Create;
: it's very better but the transparency doesn't work.

Why it's so slow with TGDIPlusCanvas?
Why I don't have transparency with TTeeCanvas3D?

The source and binary of a sample project is joined.

mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

Re: TTree is slow in design with Teechart2013

Post by mivtee » Thu Jan 23, 2014 6:15 pm

With files Sources it's better
Attachments
TeeTreeAndSlowGDIPlus.zip
(429.38 KiB) Downloaded 896 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TTree is slow in design with Teechart2013

Post by Yeray » Fri Jan 24, 2014 3:43 pm

Hello,

I'm not sure about what exact TeeChart version are you using but I see the transparencies with GDI (TTeeCanvas3D) here with TeeChart v2013.09:
testTransparency.png
testTransparency.png (201.94 KiB) Viewed 16437 times
Find the project attached:
TeeTreeAndSlowGDIPlus.zip
(915.47 KiB) Downloaded 928 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

Re: TTree is slow in design with Teechart2013

Post by mivtee » Fri Jan 24, 2014 8:45 pm

With GDI+ the background of picture I added, has a background transparent (It's a PNG)
If I clic on the button, it switch in GDI,after this, the picture has not a background transparent
Attachments
WithGDIPlus.png
WithGDIPlus.png (175.43 KiB) Viewed 16394 times
WithGDI.png
WithGDI.png (172.27 KiB) Viewed 16390 times

mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

Re: TTree is slow in design with Teechart2013

Post by mivtee » Wed Feb 05, 2014 1:34 pm

Is there a solution to have image(png) with transparent background with GDI?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TTree is slow in design with Teechart2013

Post by Yeray » Wed Feb 05, 2014 4:03 pm

Hello,

I could reproduce the problem so I've added it to the bug tracker:
http://bugs.teechart.net/show_bug.cgi?id=561

Feel free to subscribe to the ticket status by adding your mail to the CC list.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

mivtee
Newbie
Newbie
Posts: 19
Joined: Wed Jan 15, 2014 12:00 am

Re: TTree is slow in design with Teechart2013

Post by mivtee » Wed Mar 05, 2014 2:22 pm

Hi,

In GDI+, TeeTree is very slow only when I active the tranparency of the picture.
TeeChart is very slow too if I put a picture and active BackImageTransp.

Actualy I use Delphi 2007, do you have the same problem with other versions of Delphi?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TTree is slow in design with Teechart2013

Post by Yeray » Thu Mar 06, 2014 10:25 am

Hello,
mivtee wrote:In GDI+, TeeTree is very slow only when I active the tranparency of the picture.
TeeChart is very slow too if I put a picture and active BackImageTransp.
It seems to depend on the image format too. Take a look at the project attached
test_transparent_images.zip
(229.69 KiB) Downloaded 893 times
mivtee wrote:Actualy I use Delphi 2007, do you have the same problem with other versions of Delphi?
I reproduce this with Delphi 7. I don't think it's IDE dependant.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply