1

I'm preparing a custom composite which shows two different text (StyledText to be more specific) widgets and one single scrollbar. My intention is to apply the scrolling behaviour in the same terms for both text widgets. Listening for scrollbar selection events is quite easy, but for other events such as moving the caret in the text widget or selection events requires listening for more and more events.

My question is, is there a simpler way of tracking for scrolling within the text widget, or should I listen for all the possble events for keeping the scrolling level synchronized?

Baz
  • 36,440
  • 11
  • 68
  • 94
josandres
  • 317
  • 1
  • 11
  • May help http://stackoverflow.com/questions/14577749/swt-tandem-scrollbars-in-composite – Chandrayya G K Jul 23 '14 at 03:58
  • That solution uses a similar approach than the one I'm testing at this moment. However, text widget allows more interaction than simple canvas, so I'm finally handling more events through listeners. – josandres Jul 23 '14 at 07:49

0 Answers0