Re: [gtk-list] GTK_EXPAND option in gtk_table_attach()
- From: Chris Malek <cmalek aves etho caltech edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] GTK_EXPAND option in gtk_table_attach()
- Date: Wed, 7 Apr 1999 12:15:08 -0700
On Wed, Apr 07, 1999 at 12:42:01PM -0500, Ted Milker wrote:
> What exactly does this option to? The description given in, "Developing
> Linux Applications with GTK+ and GDK" says: "The GTK_EXPAND flag causes the
> table to expand to fill all the space in the window where it was inserted".
> To me, this description makes no sense to me, because it's an option
> specified to attach a widget to table. Why would it have anything to do
> with the table's expansion? Could someone give me a better description of
> this?
>
> Ted
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
A cell in a table has a certain area, x pixels by y pixels, which depends on
the flags you used to create it. If you pack a widget which is smaller than
x by y pixels into that cell, it won't take up all the space in the cell,
instead being left-justified and top-justified (I think this is this correct),
with empty space to the right and bottom of it.
With GTK_EXPAND in the xoptions arg to gtk_table_attach(), this widget
would be centered in the cell, with even amounts of space on the left
and right of it within the cell.
With GTK_EXPAND in the yoptions arg, this widget would be centered in the cell,
with even amounts of space on the top and bottom of it within the cell.
--
Chris Malek, Sys. Admin. cmalek@etho.caltech.edu
Division of Biology, 216-76
California Institute of Technology
Pasadena, CA 91125
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]