Ticket #9647: 0001-modified-layout-intro-docsZ.patch

File 0001-modified-layout-intro-docsZ.patch, 1.2 KB (added by apl-haiku, 11 years ago)
  • docs/user/interface/_layout_intro.dox

    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)  
    156156    This is only one way that you could build this layout, but it is probably
    157157    the most succinct. Functionally, this is equivalent to all the previous
    158158    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
     167BBox *box = new BBox("box-example");
     168BGroupLayout *boxLayout = BLayoutBuilder::Group<>(B_HORIZONTAL)
     169    .Add(button1)
     170    .Add(button2);
     171
     172box->AddChild(boxLayout->View());
     173\endcode
     174
    159175*/