Lines Matching refs:grid
104 example, that we wanted to add a grid of BButtons under our BStringView.
116 BGridLayout* grid = new BGridLayout();
117 group->AddItem(grid);
120 You'll notice that we've added \c grid directly to \c group. This means that
121 any BView objects we add to \c grid will become children of \c window, but
122 will be positioned by \c grid.
125 grid->AddView(MakeSmallButton(), 0, 0);
126 grid->AddView(MakeSmallButton(), 1, 0);
127 grid->AddView(MakeBigButton(), 0, 1, 2, 1);
128 grid->AddView(MakeSmallButton(), 1, 2);
131 Now we've got a nice grid of BButton objects, let's go over it quickly:
132 \li \c grid has two columns and three rows.