[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: How to flash the icon in the Windows taskbar?

shell.forceActive();

If the receiver is visible, moves it to the top of the
 drawing order for the display on which it was created
 (so that all other shells on that display, which are not
 the receiver's children will be drawn behind it) and forces
 the window manager to make the shell active.

On Windows, if the shell is minimized, it will blink.

Notice however that there is a  bug report and it is under review right now 
whether forceActive() or setActive() should be the one that causes the 
blinking:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=96735


"Kevin Gui" <jfkuai@xxxxxxxxxxxx> wrote in message 
news:a3f6b74a51b6401ace3225ba66f8d3d7$1@xxxxxxxxxxxxxxxxxx
>I have a background shell that periodically gets data displayed in it.  I'd
> like its icon in the Windows taskbar to flash when it gets new data. Just 
> like
> FlashWindowEx(
>  PFLASHWINFO pfwi
> );
>
> in Windows API.
> Does anyone know how to do this?
>
>