|
| Re: How to add Text Item to Toolbar [message #463285 is a reply to message #463233] |
Wed, 02 November 2005 08:15  |
|
Originally posted by: hsk2840.gmail.com
> Is there not a way to add a text box?
I did something like this:
ToolItem sep = new ToolItem(toolbar, SWT.SEPARATOR);
Text text = new Text(toolbar, SWT.BORDER);
text.setText(" ");
text.pack();
text.setText("");
sep.setWidth(text.getSize().x);
sep.setControl(text);
Well... It works for me, maybe there is a better solution :-)
Henrik
|
|
|
Powered by
FUDForum. Page generated in 0.03819 seconds