Skip to main content



      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 06:15 Go to next message
Eclipse UserFriend
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 131 times)
Re: Glue in menu bar items [message #1703063 is a reply to message #1703048] Tue, 28 July 2015 08:00 Go to previous messageGo to next message
Eclipse UserFriend
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 02:09 Go to previous messageGo to next message
Eclipse UserFriend
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 03:10 Go to previous message
Eclipse UserFriend
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 Jul 07 08:46:53 EDT 2025

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

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

Back to the top