Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text on Image
Text on Image [message #457232] Wed, 22 June 2005 08:48
Eclipse UserFriend
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
Previous Topic:preventing user jobs from launching the Progress Dialog
Next Topic:displaying a PDF on a Mac, Linux, Windows SWT app
Goto Forum:
  


Current Time: Thu Apr 18 14:25:21 GMT 2024

Powered by FUDForum. Page generated in 0.01661 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top