Solved

How do I make my applications taskbar button flash

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

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