Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Newbie - Table ScrollBar visibility
Newbie - Table ScrollBar visibility [message #442920] Wed, 15 September 2004 13:13 Go to next message
Eclipse UserFriend
Originally posted by: graeme_eaves.yahoo.co.uk

Hi all,

I'm trying to hide the vertical scrollbar on a table
(org.eclipse.swt.widgets.Table), regardless of whether the table has
clipped content or not, but without any success.

The following

table.getVerticalBar().setEnabled( false )

will successfully disable the scrollbar, however,

table.getVerticalBar().setVisible( false )

does not affect the scrollbar's visibility.

Is there a way I can change/set the scrollbar visibility (i.e. force it
always to be visible/invisible)?

Thanks for any help,

Graeme
Re: Newbie - Table ScrollBar visibility [message #442928 is a reply to message #442920] Wed, 15 September 2004 14:49 Go to previous message
Charlie Surface is currently offline Charlie SurfaceFriend
Messages: 40
Registered: July 2009
Member
I was going to suggest that you NOT pass V_SCROLL as a Table style.
However, I poked around and found the following comment in Table.

/*
* Feature in Windows. It is not possible to create
* a table that does not have scroll bars. Therefore,
* no matter what style bits are specified, set the
* H_SCROLL and V_SCROLL bits so that the SWT style
* will match the widget that Windows creates.
*/

So I think you are stuck with the bars. Usually Scrollables do not let you
totally control their bars because they are somewhat of an internal feature.
Although someone else may have a hack that would work.

Charlie


"Graeme" <graeme_eaves@yahoo.co.uk> wrote in message
news:ci9f5i$mi5$1@eclipse.org...
> Hi all,
>
> I'm trying to hide the vertical scrollbar on a table
> (org.eclipse.swt.widgets.Table), regardless of whether the table has
> clipped content or not, but without any success.
>
> The following
>
> table.getVerticalBar().setEnabled( false )
>
> will successfully disable the scrollbar, however,
>
> table.getVerticalBar().setVisible( false )
>
> does not affect the scrollbar's visibility.
>
> Is there a way I can change/set the scrollbar visibility (i.e. force it
> always to be visible/invisible)?
>
> Thanks for any help,
>
> Graeme
>
Previous Topic:Rendering a Control to a Printer GC
Next Topic:Another question about Wizards
Goto Forum:
  


Current Time: Fri Apr 26 10:29:06 GMT 2024

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

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

Back to the top