Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Format ToolTips
Format ToolTips [message #459478] Wed, 10 August 2005 05: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 09:19 Go to previous messageGo to next message
Eclipse UserFriend
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 09:23 Go to previous messageGo to next message
Eclipse UserFriend
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 03: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: Sat Jul 12 15:08:45 EDT 2025

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

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

Back to the top