From 52e59b292b312e5f62eed2e7a47ec0632ac24603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 24 Jan 2009 11:29:18 +0000 Subject: [PATCH] Improves the EULA alert look (bug #3321) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29005 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/installer/InstallerApp.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/apps/installer/InstallerApp.cpp b/src/apps/installer/InstallerApp.cpp index 7dcfe85f9d..3f8ab995d5 100644 --- a/src/apps/installer/InstallerApp.cpp +++ b/src/apps/installer/InstallerApp.cpp @@ -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);