Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Vertical height needed for no scrollbar?
Vertical height needed for no scrollbar? [message #453449] Tue, 05 April 2005 20:15 Go to next message
Aaron Siri is currently offline Aaron SiriFriend
Messages: 33
Registered: July 2009
Member
Is there a prefered way to determine the vertical height needed to
display a control without need for a scroll bar (example: get the height
of a Tree control so that the vertical scrollbar does not need to be
displayed).

It looks like computeSize() should do this but it doesn't appear to work
correctly. For a Tree control it only appears to take the root elements
into account when calculating the height and not any open items (and
that is only on Windows, on Gtk and OS X it behaves differently.)

I'm I correct in my assumptions for computeSize()? Is what I'm seeing
in the Tree control a bug?

-Aaron
Re: Vertical height needed for no scrollbar? [message #453470 is a reply to message #453449] Wed, 06 April 2005 15:25 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See

https://bugs.eclipse.org/bugs/show_bug.cgi?id=49724

"Aaron Siri" <aaron.siri@efi.com> wrote in message
news:d2urrc$570$1@news.eclipse.org...
> Is there a prefered way to determine the vertical height needed to display
> a control without need for a scroll bar (example: get the height of a Tree
> control so that the vertical scrollbar does not need to be displayed).
>
> It looks like computeSize() should do this but it doesn't appear to work
> correctly. For a Tree control it only appears to take the root elements
> into account when calculating the height and not any open items (and that
> is only on Windows, on Gtk and OS X it behaves differently.)
>
> I'm I correct in my assumptions for computeSize()? Is what I'm seeing in
> the Tree control a bug?
>
> -Aaron
Re: Vertical height needed for no scrollbar? [message #453517 is a reply to message #453470] Wed, 06 April 2005 22:12 Go to previous message
Aaron Siri is currently offline Aaron SiriFriend
Messages: 33
Registered: July 2009
Member
Looks great and I hope they fix it. Thanks!

-Aaron

Veronika Irvine wrote:
> See
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=49724
>
> "Aaron Siri" <aaron.siri@efi.com> wrote in message
> news:d2urrc$570$1@news.eclipse.org...
>
>>Is there a prefered way to determine the vertical height needed to display
>>a control without need for a scroll bar (example: get the height of a Tree
>>control so that the vertical scrollbar does not need to be displayed).
>>
>>It looks like computeSize() should do this but it doesn't appear to work
>>correctly. For a Tree control it only appears to take the root elements
>>into account when calculating the height and not any open items (and that
>>is only on Windows, on Gtk and OS X it behaves differently.)
>>
>>I'm I correct in my assumptions for computeSize()? Is what I'm seeing in
>>the Tree control a bug?
>>
>>-Aaron
>
>
>
Previous Topic:Table Tree - Parent of the selected element.
Next Topic:Closing an editor with a PDF ActiveX control
Goto Forum:
  


Current Time: Sun Mar 07 18:49:01 GMT 2021

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

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

Back to the top