How can I create a texteditor with hyperlink support? [message #696115] |
Wed, 13 July 2011 05:54  |
Eclipse User |
|
|
|
Hi,
I want to have a control similar to the org.eclipse.swt.widgets.Text, where I can edit a string of text. This text should contain hyperlinks, so when the mouse hovers over specific words, the cursor changes into the "hand"-symbol, and when clicked, some event happens. Also, the hyperlinks should be styled in some way to show that they are hyperlinks, for example by underlining them or changing the color.
Is there an existing control which does something like this, or will I have to build my own?
In case I have to build my own, do you have any good suggestions on how to go about it?
|
|
|
(no subject) [message #696134 is a reply to message #696115] |
Wed, 13 July 2011 05:59  |
Eclipse User |
|
|
|
On 13.07.2011 11:54, forums-noreply@eclipse.org wrote:
> Hi,
>
> I want to have a control similar to the org.eclipse.swt.widgets.Text,
> where I can edit a string of text. This text should contain
> hyperlinks, so when the mouse hovers over specific words, the cursor
> changes into the "hand"-symbol, and when clicked, some event happens.
> Also, the hyperlinks should be styled in some way to show that they
> are hyperlinks, for example by underlining them or changing the color.
>
> Is there an existing control which does something like this, or will I
> have to build my own?
Take a look at org.eclipse.swt.custom.StyledText and
org.eclipse.swt.SWT.UNDERLINE_LINK.
Dani
>
> In case I have to build my own, do you have any good suggestions on
> how to go about it?
|
|
|
Powered by
FUDForum. Page generated in 0.04420 seconds