Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Font size of combo items on ScrolledForm
Font size of combo items on ScrolledForm [message #115785] Mon, 15 December 2008 16:56 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi all,

Here's the snippet :

public class ComboDemoEntryPoint implements IEntryPoint
{
@Override
public int createUI()
{
Display display = new Display();
Shell shell = new Shell(display,SWT.SHELL_TRIM);
shell.setLayout(GridLayoutFactory.swtDefaults().create());

FormToolkit toolkit = new FormToolkit(display);

ScrolledForm container = toolkit.createScrolledForm(shell);
container.setLayoutData(GridDataFactory.fillDefaults().grab( true,
true).create());

container.getBody().setLayout(GridLayoutFactory.fillDefaults ().create());

ComboViewer comboViewer = new
ComboViewer(container.getBody(),SWT.READ_ONLY);

comboViewer.getCombo().setLayoutData(GridDataFactory.fillDef aults().grab(true,
false).create());
comboViewer.add(new String[]{"Item 1","Item 2"});

shell.setSize(300,200);
shell.open();

while (!shell.isDisposed())
{
if (!display.readAndDispatch())
display.sleep();
}

return 0;
}
}

Does the font of the combo items look too big ?


Regards,

Setya
Re: Font size of combo items on ScrolledForm [message #115904 is a reply to message #115785] Tue, 16 December 2008 14:10 Go to previous message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

Just checked out source from CVS and this problem no longer exists.

Thanks & Regards,

Setya
Previous Topic:Missing icons in deployed RAP-Application
Next Topic:Wrong position of combo's dropdown on ScrolledForm
Goto Forum:
  


Current Time: Fri Apr 26 16:21:39 GMT 2024

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

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

Back to the top