Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tableviewer Scrollbars(Tableviewer scrollbars not showing until window is resized)
Tableviewer Scrollbars [message #492593] Tue, 20 October 2009 22:25 Go to next message
dwain Missing name is currently offline dwain Missing nameFriend
Messages: 35
Registered: October 2009
Member
I have a view with one composite. That composite has a label, textbox, and table viewer. When I create the view with a set of search results that are big enough that they need to have scrollbars so that you can see all the results no scollbars appear until the window is resized by the user.

I also have this exact same composite in several editors and they all show the appropriate scrollbars when the page loads. Which is what should happen. So I am pretty confused as to why they won't show in a view until the view is resized but they do show in an editor. I really need those scrollbars to show when the page loads rather then after the user resizes it. I have tried calling update and redraws on the composite as well as the tableviewer. Does anyone have any ideas on how to fix this issue?

Thank you.
Dwain
Re: Tableviewer Scrollbars [message #492776 is a reply to message #492593] Wed, 21 October 2009 16:47 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Dwain,

In the problem case is your TableViewer running beyond the bottom of the
view, so it thinks it doesn't need a vertical scrollbar? Can you paste the
few lines here that create your controls?

As a side note you may be able to work around this by calling layout() on
your Composite's parent at an opportune time, but of course it's better to
determine what the actual problem is.

Grant


"dwain" <dwain.bethel@vanns.net> wrote in message
news:hblddb$kui$1@build.eclipse.org...
> I have a view with one composite. That composite has a label, textbox,
and table viewer. When I create the view with a set of search results that
are big enough that they need to have scrollbars so that you can see all the
results no scollbars appear until the window is resized by the user.
>
> I also have this exact same composite in several editors and they all show
the appropriate scrollbars when the page loads. Which is what should
happen. So I am pretty confused as to why they won't show in a view until
the view is resized but they do show in an editor. I really need those
scrollbars to show when the page loads rather then after the user resizes
it. I have tried calling update and redraws on the composite as well as the
tableviewer. Does anyone have any ideas on how to fix this issue?
>
> Thank you.
> Dwain
Previous Topic:How to display Scrollable Table larger than Scrollable Composite
Next Topic:SWT.Deactivate in Eclipse 3.4
Goto Forum:
  


Current Time: Thu Mar 28 17:47:01 GMT 2024

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

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

Back to the top