[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Italics in TableViewers / StyledStrings

Italic is a style attribute of the used font so subclassing StyledString.Styler and setting an appropriate font should be enough.

Are you by the way sure you need a StyledCellLabelProvider? If your whole label is in italic you could use an ordinary ColumnLabelProvider and return a font with ITALIC. From a performance point of view this is much better!

Tom

Dave schrieb:

I would like to use italics for a label in a column in a TableViewer. I thought this would be pretty easy if I used a StyledCellLabelProvider -- I see that one can define StyledStrings in the column text. Can you define italics with a StyledString? Am I on the right track here? Or is there a better way to do this?


thanks,

  -dave