How do I make my applications taskbar button flash

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
NetGeekAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
BobcsiConnect With a Mentor Commented:
Use it:

FlashWindow(application.Handle, true);

Bobcsi
0
 
NetGeekAuthor Commented:
very good, and very fast :)
0
 
BobcsiCommented:
Thx:)
0
 
NetGeekAuthor Commented:
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
 
BobcsiCommented:
if your app get focus, run it: flashwindow(application.handle,false).

Bobcsi
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.