Flash application button on taskbar
If your application is minimized and you still want to alert user, you should flash icon on taksbar instead of bring your application to front.
All you need is this small piece of code. Using the function FlashWindow (from Windows unit), you can blink your apllication button on taskbar (standard system color is used).
1 2 3 4 |
<span style="font-weight: bold;">procedure</span> TForm1.Button1Click(Sender: <span style="font-weight: bold;">TObject</span>); <span style="font-weight: bold;">begin</span> FlashWindow(Application.Handle, <span style="font-weight: bold;">true</span>); <span style="font-weight: bold;">end</span>; |