Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Two things about TrayItem
Two things about TrayItem [message #436381] Tue, 18 May 2004 11:23 Go to next message
David Thomson is currently offline David ThomsonFriend
Messages: 65
Registered: July 2009
Member
Hello,

I've noticed that after my application quits, the icon associated with the
TrayItem still remains in the tray. If I move the mouse over it, it goes
away, but not until then. This seems to be the case on all versions of
Windows.

Also, the Menu does not go away properly either. It seems to require you to
click at least one item in the menu before it cancels it. This is *really*
disruptive to users because the menu will be floating around and they don't
know how to get rid of it. Clicking on something other than it doesn't even
work!

Is there a solution to either of these problems?

David
Re: Two things about TrayItem [message #436389 is a reply to message #436381] Tue, 18 May 2004 13:48 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
David,

To solve the first problem you need to dispose() your created TrayItem(s)
before you exit your application.

Please log a bug report for the second problem with Platform - SWT.

Grant

"David Thomson" <david@suprasphere.com> wrote in message
news:c8cqge$s7i$1@eclipse.org...
> Hello,
>
> I've noticed that after my application quits, the icon associated with the
> TrayItem still remains in the tray. If I move the mouse over it, it goes
> away, but not until then. This seems to be the case on all versions of
> Windows.
>
> Also, the Menu does not go away properly either. It seems to require you
to
> click at least one item in the menu before it cancels it. This is *really*
> disruptive to users because the menu will be floating around and they
don't
> know how to get rid of it. Clicking on something other than it doesn't
even
> work!
>
> Is there a solution to either of these problems?
>
> David
Re: Two things about TrayItem [message #436393 is a reply to message #436389] Tue, 18 May 2004 14:27 Go to previous messageGo to next message
David Thomson is currently offline David ThomsonFriend
Messages: 65
Registered: July 2009
Member
Grant Gayed wrote:

> David,
>
> To solve the first problem you need to dispose() your created TrayItem(s)
> before you exit your application.
>
> Please log a bug report for the second problem with Platform - SWT.
>
> Grant
>
>
Thanks. I thought I was disposing it, but I'll look into it again. I'll
log a bug report for the second.

David
Re: Two things about TrayItem [message #436403 is a reply to message #436389] Tue, 18 May 2004 16:53 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
When the display is disposed, the tray items will get cleaned up. Are you
disposing the Display?

"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:c8d3qo$ahg$1@eclipse.org...
> David,
>
> To solve the first problem you need to dispose() your created TrayItem(s)
> before you exit your application.
>
> Please log a bug report for the second problem with Platform - SWT.
>
> Grant
>
> "David Thomson" <david@suprasphere.com> wrote in message
> news:c8cqge$s7i$1@eclipse.org...
> > Hello,
> >
> > I've noticed that after my application quits, the icon associated with
the
> > TrayItem still remains in the tray. If I move the mouse over it, it goes
> > away, but not until then. This seems to be the case on all versions of
> > Windows.
> >
> > Also, the Menu does not go away properly either. It seems to require you
> to
> > click at least one item in the menu before it cancels it. This is
*really*
> > disruptive to users because the menu will be floating around and they
> don't
> > know how to get rid of it. Clicking on something other than it doesn't
> even
> > work!
> >
> > Is there a solution to either of these problems?
> >
> > David
>
>
Re: Two things about TrayItem [message #436458 is a reply to message #436403] Wed, 19 May 2004 00:31 Go to previous message
David Thomson is currently offline David ThomsonFriend
Messages: 65
Registered: July 2009
Member
Steve Northover wrote:

> When the display is disposed, the tray items will get cleaned up. Are you
> disposing the Display?
>
> "Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
> news:c8d3qo$ahg$1@eclipse.org...
>> David,

Thank you both. That was the problem. I did have a dispose call but I
inadvertently called System.exit one place that obviously prevented the
dispose method from getting called. Thanks!
Previous Topic:change toolbar image programatically
Next Topic:global event
Goto Forum:
  


Current Time: Mon May 06 14:17:01 GMT 2024

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

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

Back to the top