Re: [gtkmm] pack_start and AttachOptions is still confusing
- From: "Marcelo E. Magallon" <marcelo magallon bigfoot com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] pack_start and AttachOptions is still confusing
- Date: Sun, 14 Jul 2002 09:28:31 +0200
>> Murray Cumming <murrayc usa net> writes:
> Are you certain that (false, true) is never used? Can you convince me
> or show me something official that says that?
Ok. I found a place where (false, true) can be used.
Picture the following table:
+-----+-----+-----+
| 0,0 | 1,0 | 2,0 |
+-----+-----+-----+
| 0,1 | 1,1 | 2,1 |
+-----+-----+-----+
| 0,2 | 1,2 | 2,2 |
+-----+-----+-----+
In GTK+, when you attach a widget to a table you specify three
parameters (expand, fill and shrink) for both x and y.
Let's say (1,0) has only expand set in x and (1,1) has only fill set in
x. The result is that (1,0) expands the whole column and (1,1) has
more space to fill. I don't claim this makes sense, I'm only saying
it's possible.
After thinking about it, the example I mentioned previously now makes
sense: a horizontal separator without "fill" set has null size. But
you don't want to set expand on it because you want it to be as large
as the largest element in the group, not larger.
Now *my* question is what does shrink mean? Why aren't expand and fill
enough for a table? The documentation really doesn't help here.
--
Marcelo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]