Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Bjorn Gustafsson is currently offline Bjorn Gustafsson
Messages: 7
Registered: July 2009
Junior Member
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
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
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: Wed Aug 27 05:08:31 EDT 2014

Powered by FUDForum. Page generated in 0.02620 seconds