Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Scrolling tabitems
Scrolling tabitems [message #443127] Mon, 20 September 2004 02:28 Go to next message
Miles is currently offline MilesFriend
Messages: 2
Registered: July 2009
Junior Member
Anyone know how to get a tabitem to scroll? I'm using a scrolledcomposite on
a sashform, putting a composite on the scrolledcomposite then putting the
tabitem inside of that. Then I populate the tabitem with various controls
that extend below the bottom of the tabitem.. it all looks fine.. it just
doesn't scroll.

Here is how I'm building the view:


ScrolledComposite scMain = new ScrolledComposite(sashForm, SWT.V_SCROLL);
scMain.setExpandVertical(true);
scMain.setExpandHorizontal(true);

_scView = new Composite(scMain, SWT.V_SCROLL);
_scView.setLayout(new FillLayout());

_tabFolder = new TabFolder(_scView, SWT.NONE);
scMain.setContent(_scView);

........... add controls to a group then...

_tabItem.setControl(_parentGroup);
Re: Scrolling tabitems [message #443134 is a reply to message #443127] Mon, 20 September 2004 09:35 Go to previous message
Miles is currently offline MilesFriend
Messages: 2
Registered: July 2009
Junior Member
OK, figured it out..
scMain.setMinHeight(<long as the tabitem>)


"Miles" <reply@newsgroup.net> wrote in message
news:cilf0e$qgi$1@eclipse.org...
> Anyone know how to get a tabitem to scroll? I'm using a scrolledcomposite
> on a sashform, putting a composite on the scrolledcomposite then putting
> the tabitem inside of that. Then I populate the tabitem with various
> controls that extend below the bottom of the tabitem.. it all looks fine..
> it just doesn't scroll.
>
> Here is how I'm building the view:
>
>
> ScrolledComposite scMain = new ScrolledComposite(sashForm, SWT.V_SCROLL);
> scMain.setExpandVertical(true);
> scMain.setExpandHorizontal(true);
>
> _scView = new Composite(scMain, SWT.V_SCROLL);
> _scView.setLayout(new FillLayout());
>
> _tabFolder = new TabFolder(_scView, SWT.NONE);
> scMain.setContent(_scView);
>
> .......... add controls to a group then...
>
> _tabItem.setControl(_parentGroup);
>
>
>
>
>
>
>
>
Previous Topic:Failed to create Ole Client
Next Topic:TrayItem platforms
Goto Forum:
  


Current Time: Tue Apr 16 23:32:30 GMT 2024

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

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

Back to the top