[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Text-Style Underline in SWT
|
Jesus, this took me a while. Didn't expect it to be so complicated,
because I never thought of an OS-dependance when dealing with underline.
Thx all for the help :-).
My Solution (Windows only):
Font systemFont = display.getSystemFont();
FontData winFontData = systemFont.getFontData()[0];
LOGFONT b = winFontData.data;
b.lfUnderline = 0x4; //Set the byte to display the underline
hope that helps some other peoples with the same prob to save some hours
;-)