Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Glue in menu bar items(Is it possible to have 2 menu bars - one on the left and second on the right)
Glue in menu bar items [message #1703048] Tue, 28 July 2015 10:15 Go to next message
Krzysztof Szymanek is currently offline Krzysztof SzymanekFriend
Messages: 9
Registered: June 2015
Junior Member
I need to have application with 2 menu bars.
First - standard on the left would show e.g. Edit,View,Help menu group items and second on the right would be simple icons with actions like close, take window out etc.

On TrimmedWindow I mark Main Menu - and this is the menu I talk about.

How to achieve that?


  • Attachment: menubars.png
    (Size: 10.08KB, Downloaded 121 times)
Re: Glue in menu bar items [message #1703063 is a reply to message #1703048] Tue, 28 July 2015 12:00 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The right one is not a menu-bar but another toolbar. Does the toolbar on
the right have to be extensible?

If you can make that fixed you can use the "efx.window.root.fxml" to
relocate the MenuBar in an HBox with a fixed toolbar on the right.

If the toolbar on the right needs to be defined through the e4xmi-File
you'd need to define you own window renderer who takes one of the
trim-elements relocating them on the right of the screen.

Tom

On 28.07.15 12:15, Krzysztof Szymanek wrote:
> I need to have application with 2 menu bars.
> First - standard on the left would show e.g. Edit,View,Help menu group items and second on the right would be simple icons with actions like close, take window out etc.
>
> On TrimmedWindow I mark Main Menu - and this is the menu I talk about.
>
> How to achieve that?
>
>
>
Re: Glue in menu bar items [message #1703165 is a reply to message #1703063] Wed, 29 July 2015 06:09 Go to previous messageGo to next message
Krzysztof Szymanek is currently offline Krzysztof SzymanekFriend
Messages: 9
Registered: June 2015
Junior Member
Yes. Right bar shall be resizeable (new items can be added). They do not need to be defined in e4xmi file.
Re: Glue in menu bar items [message #1703176 is a reply to message #1703165] Wed, 29 July 2015 07:10 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well then as I said use the customization support for the trimmedwindow!

See
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/experimental/compensator/org.eclipse.fx.code.compensator.app/src/org/eclipse/fx/code/compensator/app/ApplicationDecoration.fxml

where I position a TextField right to the MenuBar.

If you want a default-Window-Decoration just use
NativeDecoratedTrimmedWindow instead of DefaultTrimmedWindowPane.

Tom

On 29.07.15 08:09, Krzysztof Szymanek wrote:
> Yes. Right bar shall be resizeable (new items can be added). They do not
> need to be defined in e4xmi file.
Previous Topic:Usage of Efxclipse Controls like FilterableTreeTable - Best practice?
Next Topic:Using FXMLLoaderFactory load FXML
Goto Forum:
  


Current Time: Mon Jan 20 03:39:42 GMT 2025

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

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

Back to the top