Solved

Image animation in button

Posted on 1998-08-18
4
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Accepted Solution

by:
Mariner080498 earned 50 total points
ID: 1337178
    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
ID: 1337179
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
ID: 1337180
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
ID: 1337181
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 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