Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TabFolder derives from Scrollable but no scrollbars there
TabFolder derives from Scrollable but no scrollbars there [message #441819] Wed, 25 August 2004 18:22 Go to next message
John Austin is currently offline John AustinFriend
Messages: 34
Registered: July 2009
Member
I've tried to use the style bits for SWT.H_SCROLL and SWT.V_SCROLL a
call to the TabFolder constructor but they are ignored.

Why ?

The TabFolder is a (remote) subclass of Scrollable.
Re: TabFolder derives from Scrollable but no scrollbars there [message #441820 is a reply to message #441819] Wed, 25 August 2004 19:01 Go to previous messageGo to next message
Carolyn MacLeod is currently offline Carolyn MacLeodFriend
Messages: 149
Registered: July 2009
Senior Member
Hi, John.
I'm not exactly sure what you expect to see happen with scrollbars on a
TabFolder.
TabFolder does have the feature that if there are too many tabs, a little
scrollbar appears in the top right corner so that the user can scroll
through the tabs.

Perhaps you are expecting the contents of a TabItem to be scrolled if you
turn on scrollbars? If so, then you need to know that this is not the job of
the TabFolder... instead, client area scrollbars are the responsibility of
the control that is set into each TabItem using setControl. If a TabItem's
control has scrollbars, then the content of the TabFolder will have
scrollbars when the corresponding TabItem is the frontmost item.

Hope this helps,
Carolyn


"John Austin" <jwaustin@nl.rogers.com> wrote in message
news:cgil9u$fsh$1@eclipse.org...
> I've tried to use the style bits for SWT.H_SCROLL and SWT.V_SCROLL a
> call to the TabFolder constructor but they are ignored.
>
> Why ?
>
> The TabFolder is a (remote) subclass of Scrollable.
>
Re: TabFolder derives from Scrollable but no scrollbars there [message #441868 is a reply to message #441820] Thu, 26 August 2004 15:30 Go to previous message
John Austin is currently offline John AustinFriend
Messages: 34
Registered: July 2009
Member
Carolyn MacLeod wrote:
> Hi, John.
> I'm not exactly sure what you expect to see happen with scrollbars on a
> TabFolder.
> TabFolder does have the feature that if there are too many tabs, a little
> scrollbar appears in the top right corner so that the user can scroll
> through the tabs.
>

Scrollable is a superclass. I was wondering where the behavior went. The
style bits H_SCROLL and V_SCROLL get masked off into oblivion in one
of the superclass constructors.

Kind of thought that there ought to be something in the documentation.

Thanks.

> Perhaps you are expecting the contents of a TabItem to be scrolled if you
> turn on scrollbars? If so, then you need to know that this is not the job of
> the TabFolder... instead, client area scrollbars are the responsibility of
> the control that is set into each TabItem using setControl. If a TabItem's
> control has scrollbars, then the content of the TabFolder will have
> scrollbars when the corresponding TabItem is the frontmost item.
>
> Hope this helps,
> Carolyn
>
>
> "John Austin" <jwaustin@nl.rogers.com> wrote in message
> news:cgil9u$fsh$1@eclipse.org...
>
>>I've tried to use the style bits for SWT.H_SCROLL and SWT.V_SCROLL a
>>call to the TabFolder constructor but they are ignored.
>>
>>Why ?
>>
>>The TabFolder is a (remote) subclass of Scrollable.
>>
>
>
>
Previous Topic:Password edit widget sought
Next Topic:Misc. Line with CoolBar
Goto Forum:
  


Current Time: Wed Apr 24 14:36:30 GMT 2024

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

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

Back to the top