Skip to main content



      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 16:15 Go to next message
Eclipse UserFriend
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 11:25 Go to previous messageGo to next message
Eclipse UserFriend
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 18:12 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 15:17:53 EDT 2025

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

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

Back to the top