Solved

Image animation in button

Posted on 1998-08-18
4
272 Views
Last Modified: 2010-04-04
Hello!!
i want to put a little animation in my button at the right
side.
0
Comment
Question by:vis
  • 2
4 Comments
 

Accepted Solution

by:
Mariner080498 earned 50 total points
Comment Utility
    First  you must use a "bitButon".
After this you must link a file with this button .
Becouse you want animatiion , I propose to use animated
 'gif ' files .


     Regards !




0
 
LVL 7

Expert Comment

by:Motaz
Comment Utility
Hello Vis try this :

-first drop Image list then add to it for example 3 bitmpas.
-second drop bitbtn
-finally drop a timer then add this code to it's event handler :


procedure TForm1.Timer1Timer(Sender: TObject);
begin
 Count:=(Count mod 3)+1;
 BitBtn1.Glyph.FreeImage;
 BitBtn1.Glyph:=nil;
 ImageList1.GetBitMap(Count-1,BitBtn1.Glyph);
end;

Motaz..
0
 
LVL 7

Expert Comment

by:Motaz
Comment Utility
Sorry I forget to check to the answer radio button so that my answer became as comment but it is answer. Vis which answer did you accept mine or Marinor's one ?.

Motaz
motaz1@yahoo.com
0
 
LVL 1

Expert Comment

by:skatan187
Comment Utility
I know a unit to use animated gifs..
I am not planning to do it.. but I am sure that you can make
a new component wich can load animated glymps :)
get the source and the tgifimage component here:
http://www.dataweb.nl/~r.p.sterkenburg
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now