Re: labels & images
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: mici <mici fesb hr>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: labels & images
- Date: Tue, 1 Feb 2005 12:51:46 -0500
On Tue, 01 Feb 2005 18:44:49 +0100, mici <mici fesb hr> wrote:
Hi,
Does anyone know if and how one could display a GtkLabel widget over a
GtkImage or GtkDrawingArea while preserving font transparency (meaning i
could see the image displayed below the label between the letters of the
label)?
Tnx...
GtkLabel is a GTK_NO_WINDOW widget and will always draw
to its parents GdkWindow (hence preserving transperency mask).
Your problem is that GtkDrawingArea & GtkImage are not GtkContainers,
so you cant put a label inside them, you can either:
a.) Custom theme your application (allowing you to assign a graphic
file to your buttons, windows etc.)
b.) Use a PangoLayout directly and apply it to your drawing area
with gdk_draw_layout()
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]