Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to flash the icon in the Windows taskbar?
How to flash the icon in the Windows taskbar? [message #464721] Tue, 29 November 2005 02:29 Go to next message
Eclipse User
Originally posted by: jfkuai.yahoo.com.cn

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?
Re: How to flash the icon in the Windows taskbar? [message #464848 is a reply to message #464721] Wed, 30 November 2005 12:01 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika Irvine
Messages: 1272
Registered: July 2009
Senior Member
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@yahoo.com.cn> wrote in message
news:a3f6b74a51b6401ace3225ba66f8d3d7$1@www.eclipse.org...
>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?
>
>
Re: How to flash the icon in the Windows taskbar? [message #464856 is a reply to message #464721] Wed, 30 November 2005 13:48 Go to previous message
Daniel Spiewak is currently offline Daniel Spiewak
Messages: 263
Registered: July 2009
Senior Member
Best way to do it would be to create a version of the task bar icon you're using which represents the flash, then use the TaskItem#setImage(Image) method to do an utilize it (effectively animating the task item). You could also use this technique to do some other fun stuff (colorized pulsations, transforms, etc...)
Previous Topic:swt - CTabFolder
Next Topic:printing AWT Graphics
Goto Forum:
  


Current Time: Wed Apr 16 06:46:29 EDT 2014

Powered by FUDForum. Page generated in 0.09688 seconds