Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Toolbar height
Toolbar height [message #455590] Tue, 17 May 2005 16:12 Go to next message
Eclipse UserFriend
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 11:42 Go to previous messageGo to next message
Eclipse UserFriend
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 12:16 Go to previous messageGo to next message
Eclipse UserFriend
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 09:23 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 14:16:15 EDT 2025

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

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

Back to the top