Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ToolBar problems
ToolBar problems [message #444975] Fri, 22 October 2004 16:54
Eclipse UserFriend
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: Sat Jul 12 19:25:42 EDT 2025

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

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

Back to the top