Solved

Blink applications in Task bar

Posted on 2000-04-14
2
988 Views
Last Modified: 2012-06-22
How can I blink the title of applications that minimized in Taskbar? such as Yahoo messanger?

Motaz
0
Comment
Question by:Motaz
[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
2 Comments
 
LVL 15

Accepted Solution

by:
simonet earned 50 total points
ID: 2718621
Here it goes:

FlashWindow(Application.Handle, True);

If that doesn't work, try this unit (all it does is to import FlashWindowEx from User32.DLL):



unit WinFlash;

interface

uses windows;

type
  TFLASHWINFO = packed record
     cbSize:UINT  ;  //use sizeof function to get size of this structure
     hwnd:HWND  ;    //handle of window to flash (Use application.handle for taskbar button)
     dwFlags:DWORD ; //see constants below
     uCount:UINT  ;  //number of times to flash
     dwTimeout:DWORD ; //time to flash in milliseconds
  end;

  PFLASHWINFO = ^TFLASHWINFO;

const
user32 = 'user32.dll';

//dwFlag settings
FLASHW_STOP = 0; //Stop flashing. The system restores the window to its original state.
FLASHW_CAPTION = 1; //Flash the window caption.
FLASHW_TRAY = 2; //Flash the taskbar button.
FLASHW_ALL = 3; //Flash both the window caption and taskbar button. This is equivalent to setting the FLASHW_CAPTION | FLASHW_TRAY flags.
FLASHW_TIMER = 4; //Flash continuously, until the FLASHW_STOP flag is set.
FLASHW_TIMERNOFG = 12; //Flash continuously until the window comes to the foreground.


function FlashWindowEx(pfwi: PFLASHWINFO): BOOL; stdcall;

implementation

function FlashWindowEx; external user32 name 'FlashWindowEx';

end.


*********
yours,

Alex
0
 
LVL 7

Author Comment

by:Motaz
ID: 2718629
Thanks Alex simonet,

Motaz
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi selector screen 2 97
How to convert memory stream to PDF file 6 215
Dev express lookupcombo 3 60
Browsing a TTreeView in Delphi 5 43
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…
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…

734 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