Shell with scroll bars
I'm trying to create a shell with vertical and horizontal scroll bars. The code to create the scroll bars is:
Display display = new Display();
Shell shell = new Shell(display, SWT.SHELL_TRIM | SWT.V_SCROLL | SWT.H_SCROLL);
The problem is that when the shell is filled with widgets the scroll bars won't work properly. They can be rolled, but the shell doesn't respond and i can't see the widgets at the bottom.
I have tried everything I could think of, including using a scrolledComposite object, but to no avail. I don't believe that something so simple requires a lot of coding. Can anyone please help me? Perhaps you can demonstrate on a simple program, say a shell filled with buttons using a loop.
Thanks to anyone who helps.