Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Format ToolTips
Format ToolTips [message #459478] Wed, 10 August 2005 09:39 Go to next message
Eclipse UserFriend
Originally posted by: ssc.acentic.net

Hi

Can someone please clear the fog a little for me how to format the text
in a tooltip in swt ? Like the tooltips in eclipse/java editor ?

Thanks,

Sebastian
Re: Format ToolTips [message #459548 is a reply to message #459478] Wed, 10 August 2005 13:19 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Sebastian,

To show tooltips with more than just plaintext you need to implement your
own fake ones. For an example of this see
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet41.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup .
This approach allows any widget (eg.- StyledText, Browser, etc.) to be used
to show the tooltip content.

Grant

"Sebastian Scholz" <ssc@acentic.net> wrote in message
news:pan.2005.08.10.09.39.02.344000@acentic.net...
> Hi
>
> Can someone please clear the fog a little for me how to format the text
> in a tooltip in swt ? Like the tooltips in eclipse/java editor ?
>
> Thanks,
>
> Sebastian
Re: Format ToolTips [message #459549 is a reply to message #459478] Wed, 10 August 2005 13:23 Go to previous messageGo to next message
Brad Reynolds is currently offline Brad ReynoldsFriend
Messages: 309
Registered: July 2009
Senior Member
The rich tooltips you see aren't native tooltips. See the following
snippet for how to create a richer tooltip.

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet125.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

The basis is that you create a shell and then you have complete control
over it's format and contents.

Sebastian Scholz wrote:
> Hi
>
> Can someone please clear the fog a little for me how to format the text
> in a tooltip in swt ? Like the tooltips in eclipse/java editor ?
>
> Thanks,
>
> Sebastian
Re: Format ToolTips [message #459568 is a reply to message #459549] Thu, 11 August 2005 07:49 Go to previous message
Eclipse UserFriend
Originally posted by: ssc.acentic.net

Thanks, thats the hint :)
Previous Topic:OleControlSite shell.explorer - detect or intercept alert dialogs
Next Topic:Are colors really resources?
Goto Forum:
  


Current Time: Fri Apr 26 16:49:33 GMT 2024

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

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

Back to the top