Skip to main content


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 07:29 Go to next message
Eclipse UserFriend
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 17:01 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
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 18:48 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
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: Tue Dec 03 00:34:17 GMT 2024

Powered by FUDForum. Page generated in 0.04116 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top