Skip to main content


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: 183
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 messageGo to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
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
Re: Setting ToolItem Alignment [message #1808151 is a reply to message #1032781] Tue, 18 June 2019 09:02 Go to previous message
Piero Campalani is currently offline Piero CampalaniFriend
Messages: 114
Registered: January 2015
Senior Member

@Sopot: that works in a TrimBar but not in a Toolbar, supposedly. Right?

@Bastian: could you achieve your extra-space somehow?
Previous Topic:Save and Restore workbench
Next Topic:How to left/right align toolitems in toolbar?
Goto Forum:
  


Current Time: Sat Dec 14 05:07:24 GMT 2019

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

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

Back to the top