Re: Table Question
- From: Jens Luedicke <jens luedicke gmail com>
- To: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: Table Question
- Date: Wed, 03 Aug 2005 14:31:33 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Muir wrote:
I am familiar with java, and maybe that will be more of a help than a
hindrence. I am hoping that someone can refer me to some good
documentation on packing objects. Does anyone know what the gtk
equivalent of a java "grid bag layout" would be? Is it Gtk2::Table?
Looks like it might be, but maybe there is something else that I've missed.
I know what a grid bag layout is, but I never understood how to use it
properly. I knew Gtk-Perl before I touched Java Swing so my expectations
about how to arrange widgets were pre-defined.
In a Gtk2::Table widgets are arranged into cells by attaching them into
a grid by using left, right, top and bottom boundaries.
Example:
0 1 2
0 +----------+----------+
| widget 1 | widget 2 |
1 +----------+----------+
| widget 3 | widget 4 |
2 +----------+----------+
widget 1: left: 0, right: 1, top: 0, bottom: 1
widget 2: left: 1, right: 2, top: 0, bottom: 1
widget 3: left: 0, right: 1, top: 1, bottom: 2
widget 4: left: 1, right: 2, top: 1, bottom: 2
HTH,
Jens
- --
Jens Luedicke
web: http://perldude.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC8LkkiCvkc4H0gTERAlguAKDFkn+Lib8p7Wctsrr3NDk8PZVr8QCgmCjo
739PpNtStlx28t9oIfkNqhE=
=odvX
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]