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 14:36:21
|
On Wed, 16 Jul 2003, Lyle Johnson wrote: > Hugh Sasse Staff Elec Eng wrote: > > > I find that the TreeList only takes up half the space of contents, > > [...] Also the right hand half of contents is blank, despite > > This is just based on a quick scan of the code, but see what (if > anything) happens if you make these changes: > > First, remove the LAYOUT_FILL_X from the dialog box's constructor > options. I don't guess it's hurting anything, but it's being ignored; a > dialog box is a top-level window and thus doesn't have a parent > container to stretch out in: Oh, yes, of course.... You were right: that alone made no difference, but I can just let the layout default now. > Next, change the layout hints for the contents frame so that it > stretches in both the x and y directions: > > contents = FXHorizontalFrame.new(self, > LAYOUT_FILL_X|LAYOUT_FILL_Y) This seemed to make no difference, but I'll leave it in for now. > > Similarly, change the layout hints on the tree list so that it stretches > in both the x and y directions: > > @treeview[""].listStyle |= [...] > LAYOUT_FILL_X|LAYOUT_FILL_Y) OK, so the problem is not due to using that ATTR to do the job, anyway.... > > By telling these two widgets to (additionally) stretch to fill up the > remaining space in the y-direction, you shouldn't see any wasted space, > vertically speaking. I didn't notice much difference here. But since my problem is in the X direction that is reasonable. > > Now as for your comment about the right-hand side of contents being > blank: is it drawn with a white background? If so, that is just the tree No, it is grey like the rest of the tool, not white like the TreeList background. I have managed to capture a small == low quality jpg of it, gzipped and attached. > list stretching to fill in the x-direction. But it doesn't "stretch" the > tree items, if that's what you're asking. In other words, the tree > items' text is going to be drawn in whatever the current text font is > for that tree list. Agreed, I expected it to stretch the rectangle that is white, which holds all these. > > Hope this helps; please follow up if this doesn't cover it. > > Lyle > > Lyle > Thank you, Hugh > |