Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTree without Scrollbars on Cocoa
https://www.eclipse.org/forums/index.php/mv/msg/152167/479051/#msg_479051
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]]>Bjorn Gustafsson2009-08-08T15:51:32-00:00Re: Tree without Scrollbars on Cocoa
https://www.eclipse.org/forums/index.php/mv/msg/152167/481871/#msg_481871
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
>
>]]>Grant Gayed2009-08-24T15:33:08-00:00