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);
|
void InitWindow(void);
|
||||||
ModemView* ptrModemView;
|
ModemView* ptrModemView;
|
||||||
|
|
||||||
|
BBox *boxInternalModem;
|
||||||
BButton *btnAdd;
|
BButton *btnAdd;
|
||||||
BButton *btnCancel;
|
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
|
// ModemWindow::InitWindow -- Initialization Commands here
|
||||||
void ModemWindow::InitWindow(void)
|
void ModemWindow::InitWindow(void)
|
||||||
@@ -64,6 +71,10 @@ void ModemWindow::InitWindow(void)
|
|||||||
BRect r;
|
BRect r;
|
||||||
r = Bounds();
|
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);
|
BRect CancelButtonRect(24,r.bottom-37,100,r.bottom-13);
|
||||||
btnCancel = new BButton(CancelButtonRect,"btnCancel","Cancel",
|
btnCancel = new BButton(CancelButtonRect,"btnCancel","Cancel",
|
||||||
new BMessage(BTN_CANCEL), B_FOLLOW_LEFT | B_FOLLOW_TOP,
|
new BMessage(BTN_CANCEL), B_FOLLOW_LEFT | B_FOLLOW_TOP,
|
||||||
@@ -77,6 +88,7 @@ void ModemWindow::InitWindow(void)
|
|||||||
|
|
||||||
// Create the Views
|
// Create the Views
|
||||||
AddChild(ptrModemView = new ModemView(r));
|
AddChild(ptrModemView = new ModemView(r));
|
||||||
|
ptrModemView->AddChild(boxInternalModem);
|
||||||
ptrModemView->AddChild(btnCancel);
|
ptrModemView->AddChild(btnCancel);
|
||||||
ptrModemView->AddChild(btnAdd);
|
ptrModemView->AddChild(btnAdd);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user