Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Scrollbar with RichTextViewer is not working(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.)
Scrollbar with RichTextViewer is not working [message #1745364] Sat, 08 October 2016 11:21 Go to next message
Jayant Patel is currently offline Jayant PatelFriend
Messages: 2
Registered: October 2016
Junior Member
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.
Re: Scrollbar with RichTextViewer is not working [message #1745436 is a reply to message #1745364] Mon, 10 October 2016 16:06 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2624
Registered: July 2012
Senior Member
Wrap the RichTextViewer in a ScrolledComposite. Scrolling is currently not supported by the RichTextViewer itself.
Previous Topic:[Richtext Editor] How to wait to load of browser
Next Topic:XViewer - single cell selection support
Goto Forum:
  


Current Time: Sun Nov 18 04:37:16 GMT 2018

Powered by FUDForum. Page generated in 0.01937 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top