RE: drawing widget borders
- From: <martyn 2 russell bt com>
- To: <otaylor redhat com>, <gtk spamkiller bytechase cx>
- Cc: <gtk-app-devel-list gnome org>
- Subject: RE: drawing widget borders
- Date: Thu, 23 Oct 2003 16:49:33 +0100
Philippe Laporte wrote:
Is there some kind of debugging option in Gtk so that
all widgets
will draw their borders in special colors so we can see
the spacign
arrangement?
I don't think so. However, maybe you can try to achieve a
similar effect
by creating a special "debugging" theme for GTK? For
instance, colouring
all HBoxes, VBoxes and Tables in a flamboyant red or green should
provide you with good ideas about which area is occupied by
the layout
container and which is by the actual widgets.
This won't work - HBoxes, VBoxes, Tables don't have backgrounds, or
even expose handlers.
Owen's right, I had this problem once, I used an eventbox to draw a background colour. You could use this
and have a widget on top of it which is a few pixels smaller, hence giving the impression there is a border
of the background colour you set up.
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]