| [news.eclipse.platform] Re: Grrr. Why private? (How to set font of MultiPageEditorPart tabs?) |
Hi David
Try this:
CTabFolder tabFolder = (CTabFolder)getContainer(); CTabItem item = tabFolder.getItem(index); item.setFont(new Font(null,"Arial",10,SWT.BOLD));
HTH - Regards Vinu
David Coppit wrote:
Sigh... I missed getControl(), which also does the trick and is not private.
Unfortunately, I still can't get it to work. Here's what I'm doing:
Control tab = getControl(pageIndex); Font font = tab.getFont(); FontData[] fontDataArray = font.getFontData() ; for(int i=0; i < fontDataArray.length; i++) fontDataArray[i].setStyle(SWT.BOLD); tab.setFont(new Font(tab.getDisplay(),fontDataArray));
Is there something wrong with this?
Thanks a lot! David
-- ........................................
Vinu Varghese www.x-minds.org