|
Re: HTML in menu tooltip [message #1245793 is a reply to message #1245101] |
Fri, 14 February 2014 09:19 |
|
Hi Pradyumna,
you should have a look at the org.eclipse.jface.viewers.ColumnViewerToolTipSupport, which can be used to draw what ever you want on a given Composite.
I guess this snippet is nearly what you want:
ColumnViewerToolTipSupport Snippet
But unfortunally this can only be attached to ColumnViewers, but you got an idea of how to use the swt browser for your needs.
As an alternative you could also consider to use the org.eclipse.ui.forms.widgets.FormText, which is also able to render certain html elements. See this url for further information about the FormText: Forms Article including the FormText widget
To attach a custom ToolTip for a MenuItem, you may want to use an implementation of the org.eclipse.jface.window.ToolTip, on which you could place a SWT Browser or the FormText Widget.
Let me know if you need further assistance
Best regards,
Simon
|
|
|
|
Powered by
FUDForum. Page generated in 0.22200 seconds