Skip to main content



      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 07:21 Go to next message
Eclipse UserFriend
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 12:06 Go to previous message
Eclipse UserFriend
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: Sat May 03 04:27:30 EDT 2025

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

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

Back to the top