From 855cb03fc142d9d19388ebae9cb2fc47030e5ddb Mon Sep 17 00:00:00 2001
From: Andrew Lindesay <apl@lindesay.co.nz>
Date: Tue, 9 Apr 2013 10:11:49 +0000
Subject: [PATCH] modified layout intro docsZ
---
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 44bb175..5fdc8a2 100644
a
|
b
|
BLayoutBuilder::Group<>(window, B_VERTICAL)
|
156 | 156 | This is only one way that you could build this layout, but it is probably |
157 | 157 | the most succinct. Functionally, this is equivalent to all the previous |
158 | 158 | code in this introduction. |
| 159 | |
| 160 | \par Special Handling for BBox |
| 161 | BBox is a "container" view that can contain other views. |
| 162 | The use of the layout manager within an |
| 163 | instance of BBox is a special case. Code such as is shown below is |
| 164 | necessary to automatically layout views within a BBox. |
| 165 | |
| 166 | \code |
| 167 | BBox *box = new BBox("box-example"); |
| 168 | BGroupLayout *boxLayout = BLayoutBuilder::Group<>(B_HORIZONTAL) |
| 169 | .Add(button1) |
| 170 | .Add(button2); |
| 171 | |
| 172 | box->AddChild(boxLayout->View()); |
| 173 | \endcode |
| 174 | |
159 | 175 | */ |