Solved

How do I make my applications taskbar button flash

Posted on 2004-09-15
5
1,012 Views
Last Modified: 2012-05-05
Hi there,

I have a situation where my application is often running in the background, minimized, with only the applications taskbar button showing. Some times I have to alert the user to something, and would like to make the application button flash the same way I've seen many other applications do it. I've tried with showmessage, messagedlg  and even raising an exception, but no luck. Is there a specific command that will do this ?

best regards
NetGeek
0
Comment
Question by:NetGeek
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
Bobcsi earned 125 total points
ID: 12072395
Use it:

FlashWindow(application.Handle, true);

Bobcsi
0
 

Author Comment

by:NetGeek
ID: 12072480
very good, and very fast :)
0
 
LVL 2

Expert Comment

by:Bobcsi
ID: 12072504
Thx:)
0
 

Author Comment

by:NetGeek
ID: 12072605
Just a quick follow-up ;)

I now start a timer which use flashwindow(application.handle,true). In the application.onactivate event i stop my timer. But depending on when the user activates my application, the taskbar button might stay colored until it has lost focus, got focus again and lost focus again. Is there a way to change that ?
0
 
LVL 2

Expert Comment

by:Bobcsi
ID: 12073591
if your app get focus, run it: flashwindow(application.handle,false).

Bobcsi
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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