[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Text-Style Underline in SWT

Hi Benjamin,

maybe that can help you a little bit:

<eclipse-root-src>/plugins/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutDialog.java

Ralf

Benjamin Pasero schrieb:

Hi,
thanks for the tip, I used StyledText before in another context, but I don't
find any possibility to underline a text :-(.
In API I found:

"A StyledText is an editable user interface object that displays lines of
text. The following style attributes can be defined for the text:
    - font style (bold, regular)
    - ...
"

Ben

Ralf Koban schrieb:


Hi Benjamin,

use StyledText.

Ralf

Benjamin Pasero schrieb:

Hello,
I wonder why there are only SWT.NORMAL, SWT.BOLD and SWT.ITALIC
supportet by SWT. I need an underline for displaying a link in a Label.
Eclipse draws an underline, so how is it done :-) ?
thx 4 help,
Ben