Back Image Gif

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
mivchart
Newbie
Newbie
Posts: 31
Joined: Thu Dec 04, 2008 12:00 am

Back Image Gif

Post by mivchart » Tue Dec 28, 2010 10:22 am

Hello,

I would like to display a GIF image in background with animation in the TeeTree is this possible?

how to make the code in runtime?

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

Re: Back Image Gif

Post by Yeray » Wed Dec 29, 2010 2:02 pm

Hi mivchart,

The following code seems to work fine for me here:

Code: Select all

uses TeeGif;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Tree1.BackImage.LoadFromFile('C:\tmp\Triple-Spiral-Labyrinth-animated.gif');
end;
Doesn't it for you?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Image Please read our Bug Fixing Policy

mivchart
Newbie
Newbie
Posts: 31
Joined: Thu Dec 04, 2008 12:00 am

Re: Back Image Gif

Post by mivchart » Thu Dec 30, 2010 7:00 am

Ok,

But Backimage with animation Gif ?

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

Re: Back Image Gif

Post by Yeray » Thu Dec 30, 2010 8:32 am

Hi mivchart,

Here it is the gif I used to check it:
Triple-Spiral-Labyrinth-animated.gif
Triple-Spiral-Labyrinth-animated.gif (15.32 KiB) Viewed 2922 times
I can see the animation in the tree.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Image Please read our Bug Fixing Policy

mivchart
Newbie
Newbie
Posts: 31
Joined: Thu Dec 04, 2008 12:00 am

Re: Back Image Gif

Post by mivchart » Fri Dec 31, 2010 3:22 pm

Ok, that good,

but for your information, don't load in desgin mode Teetree > crash IDE D2007.

If you load image by coe in runtime > this Ok


thanks

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

Re: Back Image Gif

Post by Yeray » Mon Jan 03, 2011 10:54 am

Hi mivchart,

I've been able to run it in D2007 here without any error. I've tried it in design time and also at runtime. Here is the code I used:

Code: Select all

uses TeeGif;
procedure TForm1.FormCreate(Sender: TObject);
begin
  Tree1.BackImage.LoadFromFile('C:\tmp\Triple-Spiral-Labyrinth-animated.gif');
end;
Could you please arrange a simple example project we can run as-is to reproduce the problem here?

However I've seen that the animation is lost and the image is static. I've added it to the wish list to be revised for future releases (TV52015342).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply