ToolBar problems [message #444975] |
Fri, 22 October 2004 20:54 |
Curtis Wetherly Messages: 6 Registered: July 2009 |
Junior Member |
|
|
I'm using a toolbar inside an editor for an eclipse plugin and I'm getting
some weird results. If put the toolbar creation ahead of everything else
on the screen none of the other widgets get painted. But if i put it
after, everything looks fine. example code below
Composite contents = new Composite(parent, SWT.NULL);
ToolBar toolBar = new ToolBar(contents, SWT.HORIZONTAL);
ToolBarManager toolBarMgr = new ToolBarManager(toolBar);
toolBarMgr.add(createAddParameterAction());
toolBarMgr.add(createRemoveParameterAction());
toolBarMgr.update(true);
Table paramTable = createTable(contents);
...
In this example the Table is never drawn, but if i replace the toolBar and
toolBarMgr code with a label or some other SWT widget everything is fine.
Any ideas?
-Curtis
|
|
|
Powered by
FUDForum. Page generated in 0.04465 seconds