[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Text on Image

Hi,
I have a main composite that holds an image as the background and some buttons that are on top of this image. Moving the mouse over the buttons I paint a small description on the background image (close to the buttons) using CG. It works so far but I have no clue how to define the area the text is drawn into first so I actually get linebreaks if the text is longer than the size of the image. I tried clipping it but that only cuts the text instead of doing a linebreak. As far as I know the method textExtent only tells you the bounding area of the text, but what I'm looking for is something that defines it before. Is there any way to do that? Would appreciate any smallest hint! Thanks.


Kath