Re: Placing text over a GtkImage
- From: Brett Granger <bdgranger alum mit edu>
- To: Murray Cumming Comneon com
- Cc: flavio maqplas com br, gtk-list gnome org
- Subject: Re: Placing text over a GtkImage
- Date: Tue, 29 Jul 2003 10:06:03 -0400
Murray Cumming Comneon com wrote:
From: Flavio Alberto Lopes Soares [mailto:flavio maqplas com br]
Hello all,
I'm using GTK2.0 to develop a program and I have one doubt:
There's some way to place text (GtkLabel ?) over a GtkImage
(a .png image) to seem that the text was draw together with
the image ?
In this way, if possible, I believe that I can reduce the
pictures that need create/edit.
I'm fairly sure that you can use Pango to put text on an image, but I have
no idea how exactly.
One way you can accomplish putting a label over an image is by creating
a 1x1 table and putting both the image and the label in the same/only
cell. You will probably need to play with the alignment (*not* the
justification) of the label to get it into the correct position. Make
sure to attach the label to the table cell first, or the image will hide it!
--Brett Granger
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]