[haiku-3rdparty-dev] Re: BCardLayout, works??

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Thu, 30 Dec 2010 22:52:04 +0100

On 2010-12-30 at 22:13:22 [+0100], Stephan Assmus <superstippi@xxxxxx> 
wrote:
> Am 28.12.2010 20:58, schrieb ciprian.nedisan@xxxxxxxxxxxx:
> > Now I found my mistake.
> > I had to add the views to BCardLayout after the BCardLayout was
> > added to the layout.
> >
> > I would have expected, that it's the same  if I create a
> > BCardLayout object and add views to it, and then add it to the
> > layout.
> 
> This may have worked before the last bigger refactoring of the layout
> stuff to allow view-less layouts, don't know, but this comes to mind.

It definitely didn't work before, since layouts didn't own views, only 
views did. At least theoretically one could set another layout on a view, 
which would just change how the view's children where laid out. I don't 
think Alex has changed anything in this respect.

CU, Ingo

Other related posts: