Re: Bring a widget to the foreground
- From: John Emmas <johne53 tiscali co uk>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Bring a widget to the foreground
- Date: Sun, 2 Jan 2011 15:39:05 +0000
On 2 Jan 2011, at 14:40, jcupitt gmail com wrote:
You can just set the alignment on the label to get them to display at
the top of the button.
[...]
GTK does not officially support overlapping widgets. However, you can
sort-of do it by putting groups of widgets into eventboxes and putting
those boxes into a layout. To move to the front, ref the box, remove
it from the layout, add again, and unref. It would probably work with
other containers too. I hope I've understood what you want.
Thanks John,
To be honest, all I'm trying to do is create a button whose label font can be changed on demand. I've
managed to achieve it by using an empty button with a label on top, except that the label doesn't always stay
on top!
I'm probably being incredibly dim but I couldn't find a way to do this with a standard gtk button. I could
change the label's text quite easily but not its font. Am I missing something very obvious?
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]