Text on Image [message #457232] |
Wed, 22 June 2005 08:48 |
Eclipse User |
|
|
|
Originally posted by: reinecke.uni-koblenz.de
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
|
|
|
Powered by
FUDForum. Page generated in 0.01661 seconds