Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ExpandItem Text Size won't change on Linux(Text size will not change on linux in the ExpandItem)
ExpandItem Text Size won't change on Linux [message #810054] Wed, 29 February 2012 16:16
Bradley Holmberg is currently offline Bradley HolmbergFriend
Messages: 1
Registered: February 2012
Junior Member
I have a ExpandBar that I add ExpandItems to dynamically. I set the font size in the ExpandBar to be a larger, bolder font which works fine on Windows but on Linux(both SLED and Ubuntu 11) shows up only as the default non-bold size 11ish font. I have tried using the resourcemanager as well as creating the font manually and so far no luck.

		Segoe10Bold = new Font(null,"Segoe UI",10,SWT.BOLD);
		Segoe11Normal = new Font(null,"Segoe UI",10,SWT.NORMAL);
		Composite container = new Composite(parent, SWT.NONE);	
		container.setLayout(new FormLayout());

                expandBar = new ExpandBar(container, SWT.BORDER | SWT.V_SCROLL);
		FormData fd_expandBar = new FormData();

                xpndItem1 = new ExpandItem(expandBar, SWT.NONE);
		xpndItem1.setText("File Connector");
		Composite compositeFile = new Composite(expandBar, SWT.NONE);

Previous Topic:SWT.WRAP on Composite
Next Topic:How can I set text limit per byte size on Text widget?
Goto Forum:

Current Time: Thu May 24 06:32:32 GMT 2018

Powered by FUDForum. Page generated in 0.01837 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top