Newbie - Table ScrollBar visibility [message #442920] |
Wed, 15 September 2004 13:13 |
Eclipse User |
|
|
|
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 |
Charlie Surface 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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02632 seconds