Update table demo.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40942 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2011-03-14 00:25:31 +00:00
parent ef93b55df4
commit 5eb5a9be1a

View File

@ -25,10 +25,8 @@ public:
Column* c1 = layout->AddColumn(layout->Left(), layout->Right()); Column* c1 = layout->AddColumn(layout->Left(), layout->Right());
Row* r1 = layout->AddRow(layout->Top(), NULL); Row* r1 = layout->AddRow(layout->Top(), NULL);
Row* r3 = layout->AddRow(NULL, layout->Bottom()); Row* r2 = layout->AddRow(r1->Bottom(), NULL);
r1->SetNext(r3); Row* r3 = layout->AddRow(r2->Bottom(), layout->Bottom());
Row* r2 = layout->AddRow();
r2->InsertAfter(r1);
BButton* b1 = new BButton("A1"); BButton* b1 = new BButton("A1");
layout->AddView(b1, r1, c1); layout->AddView(b1, r1, c1);
@ -43,9 +41,6 @@ public:
layout->AddView(b3, r3, c1); layout->AddView(b3, r3, c1);
b3->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM)); b3->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM));
r2->HasSameHeightAs(r1);
r3->HasSameHeightAs(r1);
// test size limits // test size limits
BSize min = layout->MinSize(); BSize min = layout->MinSize();
BSize max = layout->MaxSize(); BSize max = layout->MaxSize();