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 09:04  |
Eclipse User |
|
|
|
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 18:02   |
Eclipse User |
|
|
|
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 09:59  |
Eclipse User |
|
|
|
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.
>>
>>
>>
>>
|
|
|
Goto Forum:
Current Time: Wed Jul 23 10:50:46 EDT 2025
Powered by FUDForum. Page generated in 0.07684 seconds
|