Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Toolbar height
Toolbar height [message #455590] Tue, 17 May 2005 20:12 Go to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
A toolbar's height seems to be determined by the first toolitem. But if the
first toolitem is a seperator with a control within that seperator item, it
doesn't size tall enough for that control. Is it feasible for SWT to make
the toolbar tall enough to display the contents of that seperator?

I didn't want to submit a bug right away.

-Chris
Re: Toolbar height [message #455679 is a reply to message #455590] Thu, 19 May 2005 15:42 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Unbelievably, there is no API in Windows to set the height of a tool item.
Please search the MSDN to confirm this. So the current hack is to control
the height using an image. I posted code recently that does this. Can you
find it or do you want me to post again?

"Chris" <schtoo@schtoo.com> wrote in message
news:d6dj9k$rfh$1@news.eclipse.org...
> A toolbar's height seems to be determined by the first toolitem. But if
the
> first toolitem is a seperator with a control within that seperator item,
it
> doesn't size tall enough for that control. Is it feasible for SWT to make
> the toolbar tall enough to display the contents of that seperator?
>
> I didn't want to submit a bug right away.
>
> -Chris
>
>
Re: Toolbar height [message #455691 is a reply to message #455679] Thu, 19 May 2005 16:16 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
I've found it, thanks. Unfortunately though, the toolbar requires all
images to be the same size. So as soon as I add one item with the 1x30 (30
being the height I want) picture, then all other toolitem's images are
stretched to 1x30.

Hmm...

-Chris

"Steve Northover" <steve_northover@ca.ibm.com> wrote in message
news:d6ic7p$6hv$1@news.eclipse.org...
> Unbelievably, there is no API in Windows to set the height of a tool item.
> Please search the MSDN to confirm this. So the current hack is to control
> the height using an image. I posted code recently that does this. Can
> you
> find it or do you want me to post again?
>
> "Chris" <schtoo@schtoo.com> wrote in message
> news:d6dj9k$rfh$1@news.eclipse.org...
>> A toolbar's height seems to be determined by the first toolitem. But if
> the
>> first toolitem is a seperator with a control within that seperator item,
> it
>> doesn't size tall enough for that control. Is it feasible for SWT to
>> make
>> the toolbar tall enough to display the contents of that seperator?
>>
>> I didn't want to submit a bug right away.
>>
>> -Chris
>>
>>
>
>
Re: Toolbar height [message #455971 is a reply to message #455691] Tue, 24 May 2005 13:23 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You could stretch one of the images you add rather than adding the bogus
1x30 one.

"Chris" <schtoo@schtoo.com> wrote in message
news:d6ie9q$9c3$1@news.eclipse.org...
> I've found it, thanks. Unfortunately though, the toolbar requires all
> images to be the same size. So as soon as I add one item with the 1x30
(30
> being the height I want) picture, then all other toolitem's images are
> stretched to 1x30.
>
> Hmm...
>
> -Chris
>
> "Steve Northover" <steve_northover@ca.ibm.com> wrote in message
> news:d6ic7p$6hv$1@news.eclipse.org...
> > Unbelievably, there is no API in Windows to set the height of a tool
item.
> > Please search the MSDN to confirm this. So the current hack is to
control
> > the height using an image. I posted code recently that does this. Can
> > you
> > find it or do you want me to post again?
> >
> > "Chris" <schtoo@schtoo.com> wrote in message
> > news:d6dj9k$rfh$1@news.eclipse.org...
> >> A toolbar's height seems to be determined by the first toolitem. But
if
> > the
> >> first toolitem is a seperator with a control within that seperator
item,
> > it
> >> doesn't size tall enough for that control. Is it feasible for SWT to
> >> make
> >> the toolbar tall enough to display the contents of that seperator?
> >>
> >> I didn't want to submit a bug right away.
> >>
> >> -Chris
> >>
> >>
> >
> >
>
>
Previous Topic:select multiple elements in a tree
Next Topic:Can SWT run in an applet? (nt)
Goto Forum:
  


Current Time: Wed Apr 24 17:35:16 GMT 2024

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

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

Back to the top