Solved

How do I make my applications taskbar button flash

Posted on 2004-09-15
5
1,017 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
[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
  • 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month6 days, 11 hours left to enroll

623 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