0

I want to make the tooltip scrollable in draw2D, just like in Eclipse when you call out the Content Assist window. Can anyone help me?

Thank you in advance!

huangcd
  • 2,369
  • 3
  • 18
  • 26

1 Answers1

1

I have never tried it, but I see no reason why using a org.eclipse.draw2d.ScrollPane in your tooltip shouldn't work. You will probably have to put the ScrollPane into another figure to restrict its size. Otherwise I suspect the ScrollPane (and with it the whole tooltip) would just have the preferred size of its content -> no scrolling.

Frettman
  • 2,251
  • 1
  • 13
  • 9