From b4c773d32ee7c1c08932cfc0829f468f9b9d299c Mon Sep 17 00:00:00 2001 From: Andrew Lindesay Date: Tue, 9 Apr 2013 10:11:49 +0000 Subject: [PATCH] modified layout intro docsZ Signed-off-by: John Scipione --- docs/user/interface/_layout_intro.dox | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/user/interface/_layout_intro.dox b/docs/user/interface/_layout_intro.dox index 802a77a3ef..30fd41a1d9 100644 --- a/docs/user/interface/_layout_intro.dox +++ b/docs/user/interface/_layout_intro.dox @@ -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 + */