Improves the EULA alert look (bug #3321)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29005 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2009-01-24 11:29:18 +00:00
parent bfa2519c44
commit 52e59b292b
+8 -5
View File
@@ -38,11 +38,14 @@ InstallerApp::InstallerApp()
BView *parent = alertView->Parent();
alertView->RemoveSelf();
alertView->MoveBy(3, 7);
alertView->ResizeTo(460, 283);
alertView->SetResizingMode(B_FOLLOW_ALL_SIDES);
alert->ResizeTo(500, 350);
BScrollView *scroll = new BScrollView("", alertView, B_FOLLOW_ALL_SIDES, B_FRAME_EVENTS, false, true, B_FANCY_BORDER);
parent->AddChild(scroll);
alertView->ResizeTo(500, 288);
alertView->SetText(EULA_TEXT);
alertView->SetTextRect(alertView->Bounds().InsetBySelf(2, 2));
alert->ResizeTo(525, 350);
BBox *box = new BBox(alertView->Frame().InsetBySelf(-2,-2));
alertView->MoveTo(2, 2);
box->AddChild(alertView);
parent->AddChild(box);
BRect alertFrame = alert->Frame();
alertFrame.OffsetTo((frame.Width() - alertFrame.Width()) / 2,
(frame.Height() - alertFrame.Height()) / 2);