[Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL); [message #820374] |
Tue, 13 March 2012 23:29  |
Eclipse User |
|
|
|
new Text(parent, SWT.MULTI | SWT.V_SCROLL); used to create a text area with vertical scrolling in RAP 1.4
1.5 nightly doesn't scroll.
Where did it go? It's a subclass of Scrollable so should support V_SCROLL and H_SCROLL
|
|
|
|
|
|
|
Re: [Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL); [message #820990 is a reply to message #820574] |
Wed, 14 March 2012 16:31  |
Eclipse User |
|
|
|
in 1.5 nightly, the Text widget still scrolls when text does not fit like it used to, but scroll bars nolonger appear.
public class EntryPoint3 implements IEntryPoint {
@Override
public int createUI() {
new Display();
final Shell shell = new Shell(SWT.SHELL_TRIM);
shell.setSize(200, 200);
Text text = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI | SWT.WRAP);
text.setBounds(50, 50, 100, 105);
shell.setVisible(true);
return 0;
}
}
This snippet should have a vertical scrollbar visible when there is too much text to show in the widget. It doesn't. You can still scroll up and down using the up and down keys though.
Works as expected in SWT on windows and RWT 1.4
|
|
|
Powered by
FUDForum. Page generated in 0.03877 seconds