Re: [Fxruby-users] layout probs with TreeList.
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <jl...@cf...> - 2003-07-16 15:57:12
|
Hugh Sasse Staff Elec Eng wrote: > Oh, so that is an inherited attribute then, as it is not listed.... Yes. > Yes, that did the job. Good. > I have since tried removing the layout hints from contents (the > horizontal frame, and found that I get the uncorrected behaviour. Right. > I see from the FOX Docs that these FILL_ hints cause this hehaviour: > "If more than one child with this option is placed side by side, the > available space will be subdivided proportionally to their default > size." > So when I had not set the FILL_X before, I was effectively getting > this anyway because of how LAYOUT_MIN_(WIDTH|HEIGHT) behave, and > when I turned this off in the contents (Horiz. frame) I was getting > this too. Only if One child and the the parent use LAYOUT_FILL will > that child be stretched to fill the parent. Is that about right? Ummm, you lost me somewhere in there ;) When you don't specify, say, LAYOUT_FILL_X, the widget will usually just take up as much space as it needs (a.k.a. its "default" width). I don't think LAYOUT_FILL_* is ever a default behavior, though. > If so this feels rather like Tk: I remember having to use fill > rather a lot when I used that. Yes, most modern GUI toolkits' layout managers owe a lot of their heritage to Tk's Packer layout manager. I know that some of GTK's layout managers are based on this concept, and I'm guessing that Qt's are as well. |