Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text wrap in Tooltip for multiple line text
Text wrap in Tooltip for multiple line text [message #446308] Tue, 23 November 2004 14:04 Go to next message
Eclipse UserFriend
Originally posted by: nvragh.yahoo.co.uk

Dear All,

I am developing a simple UI in SWT which consists of a Table with three
columns namely Model, Type and description.

The problem I face here is, if the "description" column has a text for
some two three lines, the whole description is shown as a single line in
the tooltip and it is completly unreadable.

Questions:

1. Is there anyway to wrap the tool tip text so that user see's the
complete text?
2. If the above solution is not possible, I want to implement a feature
which is available in Eclipse3.0
i,e In Eclipse editor, If the mouse cursor is over an API (say, "equals"
method of class "String"), Eclipse displays the javaDoc in a yellow window
in the Editor. If we press F2, that window gets focus and automatically
shows scrollbar also if the javadoc comment goes beyond the visible limit.
Can anyone please guide me in implementing such a feature for a SWT Table
column.

Thanks for your time.
Re: Text wrap in Tooltip for multiple line text [message #446375 is a reply to message #446308] Tue, 23 November 2004 23:02 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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
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

"nvragh" <nvragh@yahoo.co.uk> wrote in message
news:cnvg25$3iu$1@www.eclipse.org...
> Dear All,
>
> I am developing a simple UI in SWT which consists of a Table with three
> columns namely Model, Type and description.
> The problem I face here is, if the "description" column has a text for
> some two three lines, the whole description is shown as a single line in
> the tooltip and it is completly unreadable.
>
> Questions:
>
> 1. Is there anyway to wrap the tool tip text so that user see's the
> complete text?
> 2. If the above solution is not possible, I want to implement a feature
> which is available in Eclipse3.0
> i,e In Eclipse editor, If the mouse cursor is over an API (say, "equals"
> method of class "String"), Eclipse displays the javaDoc in a yellow window
> in the Editor. If we press F2, that window gets focus and automatically
> shows scrollbar also if the javadoc comment goes beyond the visible limit.
> Can anyone please guide me in implementing such a feature for a SWT Table
> column.
>
> Thanks for your time.
>
>
>
>
Re: Text wrap in Tooltip for multiple line text [message #446396 is a reply to message #446375] Wed, 24 November 2004 14:59 Go to previous message
Eclipse UserFriend
Originally posted by: nvragh.yahoo.co.uk

Hi,

Thanks a lot for your help. It works fine.
One small question. Is it possible to have Tool Tip for Table Column
header?
Example, say I have a table with three columns. I would like to show the
column name as tooltip. I don't find any API for that in SWT.

Thanks
nvragh


Veronika Irvine wrote:

> 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
>
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

> "nvragh" <nvragh@yahoo.co.uk> wrote in message
> news:cnvg25$3iu$1@www.eclipse.org...
>> Dear All,
>>
>> I am developing a simple UI in SWT which consists of a Table with three
>> columns namely Model, Type and description.
>> The problem I face here is, if the "description" column has a text for
>> some two three lines, the whole description is shown as a single line in
>> the tooltip and it is completly unreadable.
>>
>> Questions:
>>
>> 1. Is there anyway to wrap the tool tip text so that user see's the
>> complete text?
>> 2. If the above solution is not possible, I want to implement a feature
>> which is available in Eclipse3.0
>> i,e In Eclipse editor, If the mouse cursor is over an API (say, "equals"
>> method of class "String"), Eclipse displays the javaDoc in a yellow window
>> in the Editor. If we press F2, that window gets focus and automatically
>> shows scrollbar also if the javadoc comment goes beyond the visible limit.
>> Can anyone please guide me in implementing such a feature for a SWT Table
>> column.
>>
>> Thanks for your time.
>>
>>
>>
>>
Previous Topic:Always on top
Next Topic:How I can actualize label in a thread?
Goto Forum:
  


Current Time: Tue Oct 20 12:53:51 GMT 2020

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

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

Back to the top