From 92430c9c7e15a80019bb8a5996cb532b911299a4 Mon Sep 17 00:00:00 2001 From: Phil Greenway Date: Sun, 7 Sep 2003 21:12:16 +0000 Subject: [PATCH] Added the frame to the modemwindow and the button placement. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4528 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/prefs/devices/DevicesWindows.h | 1 + src/prefs/devices/ModemWindow.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/prefs/devices/DevicesWindows.h b/src/prefs/devices/DevicesWindows.h index 06c95f90c7..f7b8c4bf80 100644 --- a/src/prefs/devices/DevicesWindows.h +++ b/src/prefs/devices/DevicesWindows.h @@ -43,6 +43,7 @@ class ModemWindow : public BWindow void InitWindow(void); ModemView* ptrModemView; + BBox *boxInternalModem; BButton *btnAdd; BButton *btnCancel; }; diff --git a/src/prefs/devices/ModemWindow.cpp b/src/prefs/devices/ModemWindow.cpp index 0b1bec7171..09ac333074 100644 --- a/src/prefs/devices/ModemWindow.cpp +++ b/src/prefs/devices/ModemWindow.cpp @@ -57,6 +57,13 @@ ModemWindow::~ModemWindow() } // -------------------------------------------------------------------------------------------------- // +/*BBox(BRect frame, const char *name = NULL, +   +    uint32 resizingMode = B_FOLLOW_LEFT | B_FOLLOW_TOP, +      uint32 flags = B_WILL_DRAW | B_FRAME_EVENTS |  +            B_NAVIGABLE_JUMP, +      border_style border = B_FANCY_BORDER)*/ + // ModemWindow::InitWindow -- Initialization Commands here void ModemWindow::InitWindow(void) @@ -64,6 +71,10 @@ void ModemWindow::InitWindow(void) BRect r; r = Bounds(); + boxInternalModem = new BBox(BRect (r.left+10,r.top+15,r.right-10,r.bottom-50), + " Internal Modem ", B_FOLLOW_LEFT | B_FOLLOW_TOP, + B_WILL_DRAW, B_FANCY_BORDER); + BRect CancelButtonRect(24,r.bottom-37,100,r.bottom-13); btnCancel = new BButton(CancelButtonRect,"btnCancel","Cancel", new BMessage(BTN_CANCEL), B_FOLLOW_LEFT | B_FOLLOW_TOP, @@ -77,6 +88,7 @@ void ModemWindow::InitWindow(void) // Create the Views AddChild(ptrModemView = new ModemView(r)); + ptrModemView->AddChild(boxInternalModem); ptrModemView->AddChild(btnCancel); ptrModemView->AddChild(btnAdd); }