Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Toolbar and Text Field
Toolbar and Text Field [message #277891] Sat, 18 December 2004 09:55
Eclipse UserFriend
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
Previous Topic:any help for LocalSelectionTransfer
Next Topic:Need some files in org\eclipse\core\internal\boot :-S
Goto Forum:
  


Current Time: Sun Jul 13 13:46:21 EDT 2025

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

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

Back to the top