Toolbar and Text Field [message #277891] |
Sat, 18 December 2004 09:55 |
Eclipse User |
|
|
|
How to increase toolbar height that is suitable for a text field.
ICoolBarManager coolBarManager = configurer.getCoolBarManager();
IToolBarManager toolBar = new ToolBarManager(SWT.FLAT | SWT.RIGHT);
coolBarManager.add(new ToolBarContributionItem(toolBar,
"searchPatient"));
toolBar.add(new PatientSearchContribution("searchField"));
PatientSearchContribution is a subclass of ControlContribution and
createControl method returns a composite containing a text field with a
button like URL text field in Internet Explorer. But toolbar's height is not
enough and bottom of text field and button are being truncated.
Regards
Muhammad Aamir
|
|
|
Powered by
FUDForum. Page generated in 0.03423 seconds