Tree not removing scroll bars when H_SCROLL & V_SCROLL aren't set [message #451918] |
Thu, 10 March 2005 20:32  |
Eclipse User |
|
|
|
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 #452992 is a reply to message #451978] |
Tue, 29 March 2005 11:18  |
Eclipse User |
|
|
|
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
> >>
> >>
> >>
> >>
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08299 seconds