[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Line under the menu

Well, i'm at work now, so i haven't the code here, but i have used ApplicationWindow indeed, and the menuitems are generated by overwriting the createMenuManager() method (decompiled code :-), not complete):

This is actually caused because you have overridden getLayout() and returned a layout with multiple columns. The line is created in the createTrimWidgets(Shell) method, which is called inside ApplicationWindow.configureShell(Shell).


To make the separator display properly, you should set an appropriate layout data on the separator (using the getSeperator1() method) right after calling super.configureShell(Shell) in your own configureShell method.

Or just get rid of the separator by overriding showTopSeperator() to return false.

Matthew