Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tree without Scrollbars on Cocoa
Tree without Scrollbars on Cocoa [message #479051] Sat, 08 August 2009 11:51 Go to next message
Eclipse UserFriend
Hi,
I need to suppress the scroll bars of a Tree on OS X Cocoa, but I can't
find a way to do that.
(In my application I'm ganging up the Tree with another scrolled component
from which tree scrolling is controlled)
It would be great if there are portable solutions, but any solution,
including OS-specific ones, are welcome. Any ideas, examples or other
input would be greatly appreciated!

Thanks in advance,

Best Regards,
Bjorn Gustafsson
Re: Tree without Scrollbars on Cocoa [message #481871 is a reply to message #479051] Mon, 24 August 2009 11:33 Go to previous message
Eclipse UserFriend
Hi Bjorn, sorry for the late reply,

As of eclipse/swt 3.4 you can create Tables/Trees with style SWT.NO_SCROLL,
which turns off the default behaviour of always providing both scrollbars.
To show only a horizontal scrollbar for instance, you would use style
SWT.NO_SCROLL | SWT.H_SCROLL.

HTH,
Grant


"Bjorn Gustafsson" <bjorn@goodsoftware.ca> wrote in message
news:c283b25c84d446edae3a5bfb503fe0c5$1@www.eclipse.org...
> Hi,
> I need to suppress the scroll bars of a Tree on OS X Cocoa, but I can't
> find a way to do that.
> (In my application I'm ganging up the Tree with another scrolled component
> from which tree scrolling is controlled)
> It would be great if there are portable solutions, but any solution,
> including OS-specific ones, are welcome. Any ideas, examples or other
> input would be greatly appreciated!
>
> Thanks in advance,
>
> Best Regards,
> Bjorn Gustafsson
>
>
Previous Topic:reenable StyledText
Next Topic:Flicker in custom rendered table item
Goto Forum:
  


Current Time: Tue Jul 22 23:48:52 EDT 2025

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

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

Back to the top