Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How can I create toolbar icons with labels under them?
How can I create toolbar icons with labels under them? [message #760709] Sun, 04 December 2011 15:07 Go to next message
Eclipse UserFriend
Tom Schindl's e4 tutorial we end up creating toolbar icons with the
icon first and the text following. However for most apps that include
the icon and the label, the text is below the icon. How is this
achieved in an e4 app?

Wb
Re: How can I create toolbar icons with labels under them? [message #761170 is a reply to message #760709] Tue, 06 December 2011 02:40 Go to previous messageGo to next message
Eclipse UserFriend
On 12/4/2011 9:07 AM, Wendell Beckwith wrote:
> Tom Schindl's e4 tutorial we end up creating toolbar icons with the icon
> first and the text following. However for most apps that include the
> icon and the label, the text is below the icon. How is this achieved in
> an e4 app?
>
> Wb

Bump. Really hoping someone can point me in the right direction as I
have an app I'd like to migrate to e4 from Swing and it kinda requires
this from a consistency standpoint.

Wb
Re: How can I create toolbar icons with labels under them? [message #761316 is a reply to message #761170] Tue, 06 December 2011 09:29 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
It looks like the toolbar is created using an SWT.RIGHT-Style. There are
2 things you should do:

a) File bugzilla so that this bit is not set e.g. when a certain tag is
present (then maybe you'll get this feature in 4.2) or even better
we control this using CSS - but file a bugzilla and we can discuss
there

b) In the meantime you could write your own renderer (looking at the
code though it is NOT enough to only supply your own
ToolBarManagerRenderer but you need to create
ToolBarContributedRecord, TrimBarLayout, ...) so this is probably
too much work

Tom

Am 06.12.11 03:40, schrieb Wendell Beckwith:
> On 12/4/2011 9:07 AM, Wendell Beckwith wrote:
>> Tom Schindl's e4 tutorial we end up creating toolbar icons with the icon
>> first and the text following. However for most apps that include the
>> icon and the label, the text is below the icon. How is this achieved in
>> an e4 app?
>>
>> Wb
>
> Bump. Really hoping someone can point me in the right direction as I
> have an app I'd like to migrate to e4 from Swing and it kinda requires
> this from a consistency standpoint.
>
> Wb
Re: How can I create toolbar icons with labels under them? [message #761380 is a reply to message #761316] Tue, 06 December 2011 11:39 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I went ahead and filed this bug for your request:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=365706

Tom

Am 06.12.11 10:29, schrieb Tom Schindl:
> It looks like the toolbar is created using an SWT.RIGHT-Style. There are
> 2 things you should do:
>
> a) File bugzilla so that this bit is not set e.g. when a certain tag is
> present (then maybe you'll get this feature in 4.2) or even better
> we control this using CSS - but file a bugzilla and we can discuss
> there
>
> b) In the meantime you could write your own renderer (looking at the
> code though it is NOT enough to only supply your own
> ToolBarManagerRenderer but you need to create
> ToolBarContributedRecord, TrimBarLayout, ...) so this is probably
> too much work
>
> Tom
>
> Am 06.12.11 03:40, schrieb Wendell Beckwith:
>> On 12/4/2011 9:07 AM, Wendell Beckwith wrote:
>>> Tom Schindl's e4 tutorial we end up creating toolbar icons with the icon
>>> first and the text following. However for most apps that include the
>>> icon and the label, the text is below the icon. How is this achieved in
>>> an e4 app?
>>>
>>> Wb
>>
>> Bump. Really hoping someone can point me in the right direction as I
>> have an app I'd like to migrate to e4 from Swing and it kinda requires
>> this from a consistency standpoint.
>>
>> Wb
>
Re: How can I create toolbar icons with labels under them? [message #761452 is a reply to message #761380] Tue, 06 December 2011 13:46 Go to previous message
Eclipse UserFriend
On 12/6/2011 5:39 AM, Tom Schindl wrote:
> I went ahead and filed this bug for your request:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=365706
>
> Tom

Just woke up and saw this, thanks Tom.

Wb
Previous Topic:Inject the MMenu in a Handler
Next Topic:Programmatic Contribution Factories not supported
Goto Forum:
  


Current Time: Sat Apr 27 04:23:50 GMT 2024

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

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

Back to the top