[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Different font/style for part of label?

You can either use a StyledText with style READ_ONLY (snippet
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet163.java?view=co )
or use a Canvas and draw the text on it.

Grant


"Chris W" <chris@xxxxxxxxxxxxxx> wrote in message
news:d00eef9ea7570bdd7c961ae81da2bcdc$1@xxxxxxxxxxxxxxxxxx
> How can you set the font on a single word or part of a label?  For
> example, "It is <bold>raining</bold> outside" where "raining" is a
> different style than the rest of the sentence.
>