Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Prevent tool tips from disappearing after fixed time
Prevent tool tips from disappearing after fixed time [message #1729717] Mon, 18 April 2016 12:51 Go to next message
Vlad Acretoaie is currently offline Vlad AcretoaieFriend
Messages: 93
Registered: April 2014
Member
Hi,

When setting the tool tip text of a Control via the setToolTipText(String string) method, the tool tip disappears after a fixed time (around 3 seconds). This happens regardless if the user provides input or not.

What would be the best way to show the tool tip indefinitely (i.e. without a time limit) until the user provides some input (e.g. moving the mouse cursor)?

Thanks in advance!

Cheers,
Vlad
Re: Prevent tool tips from disappearing after fixed time [message #1729728 is a reply to message #1729717] Mon, 18 April 2016 13:44 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6365
Registered: July 2009
Senior Member
Use a JFace-Tooltip

Tom

On 18.04.16 14:51, Vlad Acretoaie wrote:
> Hi,
>
> When setting the tool tip text of a Control via the
> setToolTipText(String string) method, the tool tip disappears after a
> fixed time (around 3 seconds). This happens regardless if the user
> provides input or not.
>
> What would be the best way to show the tool tip indefinitely (i.e.
> without a time limit) until the user provides some input (e.g. moving
> the mouse cursor)?
>
> Thanks in advance!
>
> Cheers,
> Vlad
Re: Prevent tool tips from disappearing after fixed time [message #1729791 is a reply to message #1729728] Tue, 19 April 2016 06:45 Go to previous message
Vlad Acretoaie is currently offline Vlad AcretoaieFriend
Messages: 93
Registered: April 2014
Member
Hi Thomas,

Thanks for the quick answer. That was my initial idea as well.
I was hoping for something that would require fewer changes to my existing code (like setting a timeout value somewhere), but it seems like this is the only way to go.

Cheers,
Vlad
Previous Topic:Accessibility for rows in Tree with SWT_CHECK style
Next Topic:shell - can't drive initial size
Goto Forum:
  


Current Time: Wed Dec 13 11:31:34 GMT 2017

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

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