Re: [Fxruby-users] layout probs with TreeList.
Status: Inactive
Brought to you by:
lyle
|
From: Hugh S. S. E. E. <hg...@dm...> - 2003-07-16 15:28:28
|
On Wed, 16 Jul 2003, Lyle Johnson wrote:
> Hugh Sasse Staff Elec Eng wrote:
>
> > OK, so the problem is not due to using that ATTR to do the job,
> > anyway....
>
> Whoops, yes, that is a problem. My mistake. The 'listStyle' attribute
> only deals with the treelist-specific options (e.g.
> TREELIST_SHOWS_LINES). So let's break that line up into:
>
> @treeview[""].listStyle |=
> TREELIST_SHOWS_LINES|TREELIST_SHOWS_BOXES|TREELIST_ROOT_BOXES
> @treeview[""].layoutHints = LAYOUT_FILL_X|LAYOUT_FILL_Y
Oh, so that is an inherited attribute then, as it is not listed....
>
> and see if the layout hints "take" this time ;)
Yes, that did the job.
I have since tried removing the layout hints from contents (the
horizontal frame, and found that I get the uncorrected behaviour.
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) hehave, 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?
If so this feels rather like Tk: I remember having to use fill
rather a lot when I used that.
Hugh
>
>
|