Adjust the test apps.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38791 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -38,19 +38,18 @@ public:
|
|||||||
a1->SetRightInset(10);
|
a1->SetRightInset(10);
|
||||||
|
|
||||||
layout->AddArea(layout->Left(), y1, layout->Right(), y2, button2);
|
layout->AddArea(layout->Left(), y1, layout->Right(), y2, button2);
|
||||||
button2->SetExplicitAlignment(
|
button2->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP));
|
||||||
BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP));
|
|
||||||
|
|
||||||
Area* a3 = layout->AddArea(layout->Left(), y2, layout->Right(), y3,
|
Area* a3 = layout->AddArea(layout->Left(), y2, layout->Right(), y3,
|
||||||
button3);
|
button3);
|
||||||
button3->SetExplicitAlignment(
|
button3->SetExplicitAlignment(BAlignment(B_ALIGN_HORIZONTAL_CENTER,
|
||||||
BAlignment(B_ALIGN_HORIZONTAL_CENTER, B_ALIGN_VERTICAL_CENTER));
|
B_ALIGN_VERTICAL_CENTER));
|
||||||
a3->HasSameHeightAs(a1);
|
a3->SetHeightAs(a1);
|
||||||
|
|
||||||
layout->AddArea(layout->Left(), y3, layout->Right(), layout->Bottom(),
|
layout->AddArea(layout->Left(), y3, layout->Right(), layout->Bottom(),
|
||||||
button4);
|
button4);
|
||||||
button4->SetExplicitAlignment(
|
button4->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT,
|
||||||
BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM));
|
B_ALIGN_BOTTOM));
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -55,7 +55,8 @@ public:
|
|||||||
layout->AddArea(layout->Left(), y1, x1, layout->Bottom(), button4);
|
layout->AddArea(layout->Left(), y1, x1, layout->Bottom(), button4);
|
||||||
layout->AddArea(x1, y1, x2, y2, textView1);
|
layout->AddArea(x1, y1, x2, y2, textView1);
|
||||||
|
|
||||||
a1->HasSameSizeAs(a3);
|
a1->SetWidthAs(a3);
|
||||||
|
a1->SetHeightAs(a3);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user