[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Scrollable Composite
|
I just did that recently. I used the example in the API for
ScolledComposite.
eg. for a multi-page editor
ScrolledComposite sc = new ScrolledComposite(getContainer(), SWT.H_SCROLL |
SWT.V_SCROLL | SWT.BORDER);
Composite composite = new Composite(sc, SWT.NONE);
sc.setContent(composite);
//your widgets....
composite.setSize(composite.computeSize(SWT.MAX, SWT.MAX)); // this seems
to always show the scrollbars though. I need to play with the sizing.
int index = addPage(sc);
"Peter Ebraert" <pebraert@xxxxxxxxx> wrote in message
news:b8jmb8$8tb$1@xxxxxxxxxxxxxxxx
> Hello
>
> I have probs Getting my Editor-Page scrollable.
> It is an editor based on a composite, filled up with labels and other
> widgets.
> Can someone tell me how to do that?
>
> Thanks,
>
> Peter.
>