Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ToolBar problems
ToolBar problems [message #444975] Fri, 22 October 2004 20:54
Curtis Wetherly is currently offline Curtis WetherlyFriend
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
Previous Topic:Drag and Drop validation
Next Topic:Building libswt-mozilla-motif-xxxx.so
Goto Forum:
  


Current Time: Wed Oct 21 02:42:29 GMT 2020

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

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

Back to the top