Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[nebula-dev] New topic in forum Nebula, called Scrollbar with RichTextViewer is not working, by Jayant Patel

Title: Eclipse Community Forums
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.

Attachment: RichTextViewerExample.java
(Size: 2.82KB, Downloaded 0 times)
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top