Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to vertically center a CoolItem in a CoolBar?
How to vertically center a CoolItem in a CoolBar? [message #451075] Tue, 22 February 2005 20:11 Go to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Hi,

I am referring to the CoolBar Eclipse is using. You got some ToolItems
that are defined
with DROP_DOWN style, which results in a bigger height of the ToolItem.
In the next
CoolItem, some ToolItems are placed with normal style (and normal
height). These are
somehow vertically centered. I checked them with Java Spider and they
dont seem to
have a Layout or LayoutData set.

So how is Eclipse doing it?

Thanks for helping,
Ben
Re: How to vertically center a CoolItem in a CoolBar? [message #451076 is a reply to message #451075] Tue, 22 February 2005 20:23 Go to previous message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Benjamin Pasero wrote:

> Hi,
>
> I am referring to the CoolBar Eclipse is using. You got some ToolItems
> that are defined
> with DROP_DOWN style, which results in a bigger height of the
> ToolItem. In the next
> CoolItem, some ToolItems are placed with normal style (and normal
> height). These are
> somehow vertically centered. I checked them with Java Spider and they
> dont seem to
> have a Layout or LayoutData set.
>
> So how is Eclipse doing it?
>
> Thanks for helping,
> Ben

Oops, I forgot to call ToolBar#pack()

Ben
Previous Topic:Image inside push button
Next Topic:error in executing eclipse !
Goto Forum:
  


Current Time: Thu Apr 25 04:47:52 GMT 2024

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

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

Back to the top