| Subject: Scrollbar with RichTextViewer is not working |
Author: Jayant Patel |
Date: Sat, 08 October 2016 11:21 |
I am using nebula RichTextViewer to display styled html text. When i add vertical bar to the viewer it got added but seems to be not attached to the viewer. Scroll not working. Added it to the snippet available for RichTextViewer example.
final RichTextViewer viewer = new RichTextViewer(parent, SWT.BORDER | SWT.WRAP | SWT.MULTI | SWT.V_SCROLL);
GridDataFactory.fillDefaults().grab(true, true).span(1, 2).applyTo(viewer);
final Text htmlOutput = new Text(parent,SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.READ_ONLY);
GridDataFactory.fillDefaults().grab(true, false).span(2, 1).hint(SWT.DEFAULT, 100).applyTo(htmlOutput);
Composite buttonPanel = new Composite(parent, SWT.NONE);
buttonPanel.setLayout(new RowLayout());
GridDataFactory.fillDefaults().grab(true, false).applyTo(buttonPanel);
Please suggest.
|
|
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]
|