modified layout intro docsZ

Signed-off-by: John Scipione <[email protected]>
This commit is contained in:
Andrew Lindesay
2014-06-02 20:13:16 -04:00
committed by John Scipione
parent 9cd7c6a433
commit b4c773d32e
+16
View File
@@ -156,4 +156,20 @@ BLayoutBuilder::Group<>(window, B_VERTICAL)
This is only one way that you could build this layout, but it is probably
the most succinct. Functionally, this is equivalent to all the previous
code in this introduction.
\par Special Handling for BBox
BBox is a "container" view that can contain other views.
The use of the layout manager within an
instance of BBox is a special case. Code such as is shown below is
necessary to automatically layout views within a BBox.
\code
BBox *box = new BBox("box-example");
BGroupLayout *boxLayout = BLayoutBuilder::Group<>(B_HORIZONTAL)
.Add(button1)
.Add(button2);
box->AddChild(boxLayout->View());
\endcode
*/