Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Setting ToolItem Alignment
Setting ToolItem Alignment [message #1032670] Wed, 03 April 2013 09:22 Go to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 162
Registered: January 2013
Senior Member
Hi,

In my TrimmedWindow there is a WindowTrim with a Toolbar. This Toolbar is on top. Now I have four items and one separator item between the first two items and the other two items. The separator should create a little space between the two item groups. So my approach was to set .MToolBarSeparator{margin-left: 100px;} in my css. This doesn't work. Do I have to do something else, to achieve this?

Best regards
Bastian
Re: Setting ToolItem Alignment [message #1032781 is a reply to message #1032670] Wed, 03 April 2013 12:27 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

If you want some extra space between toolitems add a tool control in between and tag it with 'stretch' (TrimBarLayout.SPACER).
Re: Setting ToolItem Alignment [message #1032793 is a reply to message #1032781] Wed, 03 April 2013 12:43 Go to previous message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 162
Registered: January 2013
Senior Member
Hi,

thanks. That works so far, but I'd rather have it more dynamically, like in CSS.
It would be great, if there'd be possibility to do it via CSS.

Thank you.
Bastian
Previous Topic:Dynamically creating SWT components in e4 parts
Next Topic:Fixed delay when opening file in editor (and some other actions)
Goto Forum:
  


Current Time: Sun Nov 23 20:02:15 GMT 2014

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

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