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
This commit is contained in:
Phil Greenway
2003-09-07 21:12:16 +00:00
parent 7cde8a9d7f
commit 92430c9c7e
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -43,6 +43,7 @@ class ModemWindow : public BWindow
void InitWindow(void);
ModemView* ptrModemView;
BBox *boxInternalModem;
BButton *btnAdd;
BButton *btnCancel;
};
+12
View File
@@ -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);
}