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

Benjamin Pasero wrote:

> 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)
>     - ...
> "

Actually, you can specify a font using the setFont() method of StyledText.
There, you can undeline your text. Please refer to the SWT examples, in
the Custom Control example. You will see whait I mean :)