How to scroll automatically StyledText (SWT)

182 Views Asked by At

I have a StyledText widget with both scrollbars. The text inside is bigger than the client area (both scrollbars are active). I iterate through every char from the text.

How to scroll automatically in order to show every char visible (char selected by iterator)?

1

There are 1 best solutions below

0
greg-449 On BEST ANSWER

Call the showSelection method of StyledText to make sure the current selection is visible.