Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Part Toolbar and Part Menu
Part Toolbar and Part Menu [message #1423971] Mon, 15 September 2014 09:01 Go to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Hi

I am playing around with a menu and a toolbar in a part. My first experiment looks like this:

index.php/fa/19122/0/

I see some issues here:
- the menu is rendered on top of the toolbar
- the toolbar background does not blend into the background of the part
- the toolbar buttons use too much space (they are not flat)

In E4-SWT the toolbar and the menu are placed in the space to the right of the tab handle. I like this, because it uses less space, than the current solution.

Is this a configration issue (i.e. missing addon)?

Greetings
Christoph
Re: Part Toolbar and Part Menu [message #1423978 is a reply to message #1423971] Mon, 15 September 2014 09:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The javafx control does not allow us to place stuff in the header area
hence we have to create them inside the Parts area.

You can of course control the L&F of the Toolbar using CSS so you should
be able to adjust the buttons & toolbar using JavaFX CSS.

To find out the CSS-Constants you can look at DefPartRenderer in
addition to the CSS-Styling you can mark the toolbar as floating about
content and to span the full header area using tags

Tom

On 15.09.14 11:01, Christoph Keimel wrote:
> Hi
>
> I am playing around with a menu and a toolbar in a part. My first experiment looks like this:
>
>
>
> I see some issues here:
> - the menu is rendered on top of the toolbar
> - the toolbar background does not blend into the background of the part
> - the toolbar buttons use too much space (they are not flat)
>
> In E4-SWT the toolbar and the menu are placed in the space to the right of the tab handle. I like this, because it uses less space, than the current solution.
>
> Is this a configration issue (i.e. missing addon)?
>
> Greetings
> Christoph
>
Re: Part Toolbar and Part Menu [message #1424760 is a reply to message #1423978] Tue, 16 September 2014 11:22 Go to previous message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 482
Registered: December 2010
Location: Germany
Senior Member
Thanks. The Tag 'Part-Toolbar-FullSpan' works quite well.

In case somebody stumbles over this thread. The css selector would look something like this:
.view-toolbar-container .button {
}

If somebody who is more skilled in css would be willing to share a nice styling for toolbar buttons, I would be most obliged Razz

[Updated on: Tue, 16 September 2014 11:22]

Report message to a moderator

Previous Topic:Problem loading FXML files
Next Topic:Export e(fx)clipse Tutorial 2 plug-in
Goto Forum:
  


Current Time: Fri Mar 29 11:49:01 GMT 2024

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

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

Back to the top