Re: box around a GtkLabel
- From: Wallace Owen <wallace owen L-3Com com>
- To: "David Necas (Yeti)" <yeti physics muni cz>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: box around a GtkLabel
- Date: Fri, 03 Mar 2006 12:18:15 -0800
On Fri, 2006-03-03 at 19:14 +0100, David Necas (Yeti) wrote:
On Fri, Mar 03, 2006 at 01:09:39PM -0500, Zvi Sebrow wrote:
I'm trying to draw a box around one or more GtkLabels.
when i use a GtkDrawingArea, the box comes out fine,
but the labels are covered by the inside of the box.
is there a way to set a GtkDrawingArea to be transparent,
so it wont cover up any GtkLabels?
or is there another, simpler way of doing this?
Yes, it is: just draw the text with gdk_draw_layout() on the
drawing area.
But if you really want labels, and only used GtkDrawingArea because you
thought it'd be a way to decorate around them, then what you really want
to do is put rour labels in an hbox or vbox, then put the hbox in a
frame, and don't use GtkDrawingArea unless you want to draw primitives
like lines, arcs, polygons and text.
// Wally
--
"Mind like parachute - Only function when open" -- Charlie Chan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]