[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Physical Screen Size Limiting Scrollable Component

It's working now. I believe that I was making two mistakes. I was calling setControl, but I was calling it at the beginning of building out the contained components, rather then at the end.

The other mistake I was making was that the design tool that I am working with seems to have a limit on its vertical height that it will render. So the limitation that I was seeing was in the tool, not the running code.

Matthew Hall wrote:
Are you calling ScrolledComposite.setControl(theComposite)?

A. Rick Anderson wrote:

I have a large form that takes more vertical height then the physical screen permits. I can't seem to find the magic combination to permit my scrollable composite to do this.

I tried both methods outlined in The Definitive Guide to SWT and JFaces, using a composite as the child that is added to the scrollable composite. Then I add three custom components to the composite.

I've tried setting the size of the:
the three custom components, the Composite, and the minimum size of the Scrollable Composite.


However, no matter how tall I set the size of any of these three, or these three in combination, the height of the results seems to max out at the physical height of the window.

What is strange is that the third component is being rendered. But while the vertical scroll bar is present, it's not active, so I can't scroll vertically to get to the lower part of the third component.