[haiku-3rdparty-dev] ALM layout question

  • From: Romain <romain.haiku@xxxxxxxxxxx>
  • To: <haiku-3rdparty-dev@xxxxxxxxxxxxx>
  • Date: Wed, 17 Feb 2010 13:22:53 +0100

Hello,

I am using ALM layout on an application, and there is something that I do
not manage to do. The layout is the following:

|--------------|
|  Area1       |
|              |
|--------------| YTab1
|  Area2       |
|              |
|              |
|--------------| YTab2
| Area3        |
|--------------|


The window is composed of 3 areas:
- Area1 contains a StringView
- Area2 contains a view composed of a ListView and a ScrollbarView
- Area3 contains a Button

My aim is to display only Area1 and 3 at startup, and eventually display
Area3 if a specific event occurs.
I am able to achieve most of this: I defined a constraint so that "YTab2 >
YTab1". This allows to first display only Area1 and 3 without an empty
space in the window. Adding area3 later and refreshing things works well.

My issue is that in such a case, the background of the window is white. On
apps the do not use layouts I always used a background view that contained
all other UI elements. I do not know how to do that with ALM: If I create
an Area for such a background View, all Areas created after are visible in
the window, but I cannot interact with then. It looks like all events are
not received by the target view. Since Area3 is created after all other
ones (and only if I want to display it), I do not know how to handle this.

I can post some code if things are not clear.
Any suggestions on this issue ?

Thanks,
Romain.

Other related posts:

  • » [haiku-3rdparty-dev] ALM layout question - Romain