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:
@@ -43,6 +43,7 @@ class ModemWindow : public BWindow
|
||||
void InitWindow(void);
|
||||
ModemView* ptrModemView;
|
||||
|
||||
BBox *boxInternalModem;
|
||||
BButton *btnAdd;
|
||||
BButton *btnCancel;
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user