Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tree not removing scroll bars when H_SCROLL & V_SCROLL aren't set
Tree not removing scroll bars when H_SCROLL & V_SCROLL aren't set [message #451918] Fri, 11 March 2005 01:32 Go to next message
Eclipse UserFriend
Originally posted by: fn2o-mycl.spamex.com

Even though I've specified that the tree's scroll bars should be turned off,
they appear anyhow. I'm using the last stable build swt-3.1M5a-win32.zip
with files dated 2-19-2005. I create the new tree with these feature flags
and the scroll bars are turned off:



> new Tree(parent, (SWT.FULL_SELECTION | SWT.MULTI | (SWT.H_SCROLL &
SWT.V_SCROLL)))
10000000000000010



Nevertheless, my tree draws with scroll bars and getStyle says scroll bars
are turned on.



> tree.getStyle ()
10000000010000001100000010







============================



Flags:



SWT.FULL_SELECTION
10000000000000000




SWT.MULTI
10



SWT.H_SCROLL
100000000



SWT.V_SCROLL
1000000000
Re: Tree not removing scroll bars when H_SCROLL & V_SCROLL aren't set [message #451939 is a reply to message #451918] Fri, 11 March 2005 15:06 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Scrollbars are always shown for these widgets due to platform limitations.
Here's the comment from Tree.checkStyle(), which adds the H_SCROLL and
V_SCROLL bits:

/*
* Feature in Windows. It is not possible to create
* a tree that scrolls and does not have scroll bars.
* The TVS_NOSCROLL style will remove the scroll bars
* but the tree will never scroll. 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.
*/

Grant

"Mighty M" <fn2o-mycl@spamex.com> wrote in message
news:d0qsbn$f24$1@www.eclipse.org...
> Even though I've specified that the tree's scroll bars should be turned
off,
> they appear anyhow. I'm using the last stable build swt-3.1M5a-win32.zip
> with files dated 2-19-2005. I create the new tree with these feature
flags
> and the scroll bars are turned off:
>
>
>
> > new Tree(parent, (SWT.FULL_SELECTION | SWT.MULTI | (SWT.H_SCROLL &
> SWT.V_SCROLL)))
> 10000000000000010
>
>
>
> Nevertheless, my tree draws with scroll bars and getStyle says scroll bars
> are turned on.
>
>
>
> > tree.getStyle ()
> 10000000010000001100000010
>
>
>
>
>
>
>
> ============================
>
>
>
> Flags:
>
>
>
> SWT.FULL_SELECTION
> 10000000000000000
>
>
>
>
> SWT.MULTI
> 10
>
>
>
> SWT.H_SCROLL
> 100000000
>
>
>
> SWT.V_SCROLL
> 1000000000
>
>
>
>
Re: Tree not removing scroll bars when H_SCROLL & V_SCROLL aren't set [message #451978 is a reply to message #451939] Fri, 11 March 2005 18:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fn2o-mycl.spamex.com

I saw the comment and felt that if I unset both the SWT.H_SCROLL and
SWT.V_SCROLL, the Windows TVS_NOSCROLL should enable and the scroll bars
vanish.

"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:d0sc5p$d55$1@www.eclipse.org...
> Scrollbars are always shown for these widgets due to platform limitations.
> Here's the comment from Tree.checkStyle(), which adds the H_SCROLL and
> V_SCROLL bits:
>
> /*
> * Feature in Windows. It is not possible to create
> * a tree that scrolls and does not have scroll bars.
> * The TVS_NOSCROLL style will remove the scroll bars
> * but the tree will never scroll. 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.
> */
>
> Grant
>
> "Mighty M" <fn2o-mycl@spamex.com> wrote in message
> news:d0qsbn$f24$1@www.eclipse.org...
>> Even though I've specified that the tree's scroll bars should be turned
> off,
>> they appear anyhow. I'm using the last stable build swt-3.1M5a-win32.zip
>> with files dated 2-19-2005. I create the new tree with these feature
> flags
>> and the scroll bars are turned off:
>>
>>
>>
>> > new Tree(parent, (SWT.FULL_SELECTION | SWT.MULTI | (SWT.H_SCROLL &
>> SWT.V_SCROLL)))
>> 10000000000000010
>>
>>
>>
>> Nevertheless, my tree draws with scroll bars and getStyle says scroll
>> bars
>> are turned on.
>>
>>
>>
>> > tree.getStyle ()
>> 10000000010000001100000010
>>
>>
>>
>>
>>
>>
>>
>> ============================
>>
>>
>>
>> Flags:
>>
>>
>>
>> SWT.FULL_SELECTION
>> 10000000000000000
>>
>>
>>
>>
>> SWT.MULTI
>> 10
>>
>>
>>
>> SWT.H_SCROLL
>> 100000000
>>
>>
>>
>> SWT.V_SCROLL
>> 1000000000
>>
>>
>>
>>
>
>
Re: Tree not removing scroll bars when H_SCROLL & V_SCROLL aren't set [message #452992 is a reply to message #451978] Tue, 29 March 2005 16:18 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Sorry, no way to get rid of the scroll bars. Thanks Microsoft!

"Mighty M" <fn2o-mycl@spamex.com> wrote in message
news:d0smh4$5io$1@www.eclipse.org...
> I saw the comment and felt that if I unset both the SWT.H_SCROLL and
> SWT.V_SCROLL, the Windows TVS_NOSCROLL should enable and the scroll bars
> vanish.
>
> "Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
> news:d0sc5p$d55$1@www.eclipse.org...
> > Scrollbars are always shown for these widgets due to platform
limitations.
> > Here's the comment from Tree.checkStyle(), which adds the H_SCROLL and
> > V_SCROLL bits:
> >
> > /*
> > * Feature in Windows. It is not possible to create
> > * a tree that scrolls and does not have scroll bars.
> > * The TVS_NOSCROLL style will remove the scroll bars
> > * but the tree will never scroll. 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.
> > */
> >
> > Grant
> >
> > "Mighty M" <fn2o-mycl@spamex.com> wrote in message
> > news:d0qsbn$f24$1@www.eclipse.org...
> >> Even though I've specified that the tree's scroll bars should be turned
> > off,
> >> they appear anyhow. I'm using the last stable build
swt-3.1M5a-win32.zip
> >> with files dated 2-19-2005. I create the new tree with these feature
> > flags
> >> and the scroll bars are turned off:
> >>
> >>
> >>
> >> > new Tree(parent, (SWT.FULL_SELECTION | SWT.MULTI | (SWT.H_SCROLL &
> >> SWT.V_SCROLL)))
> >> 10000000000000010
> >>
> >>
> >>
> >> Nevertheless, my tree draws with scroll bars and getStyle says scroll
> >> bars
> >> are turned on.
> >>
> >>
> >>
> >> > tree.getStyle ()
> >> 10000000010000001100000010
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> ============================
> >>
> >>
> >>
> >> Flags:
> >>
> >>
> >>
> >> SWT.FULL_SELECTION
> >> 10000000000000000
> >>
> >>
> >>
> >>
> >> SWT.MULTI
> >> 10
> >>
> >>
> >>
> >> SWT.H_SCROLL
> >> 100000000
> >>
> >>
> >>
> >> SWT.V_SCROLL
> >> 1000000000
> >>
> >>
> >>
> >>
> >
> >
>
>
Previous Topic:Removing Image from TabItem
Next Topic:Performance difference between GC with[out] Transform
Goto Forum:
  


Current Time: Tue Jul 16 19:09:26 GMT 2019

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

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

Back to the top