draw a check box, too
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12423 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
#include "Button.h"
|
#include "Button.h"
|
||||||
|
#include "CheckBox.h"
|
||||||
#include "View.h"
|
#include "View.h"
|
||||||
#include "Window.h"
|
#include "Window.h"
|
||||||
|
|
||||||
@@ -86,9 +87,14 @@ show_window(BRect frame, const char* name)
|
|||||||
BRect b(view->Bounds());
|
BRect b(view->Bounds());
|
||||||
b.InsetBy(20.0, 40.0);
|
b.InsetBy(20.0, 40.0);
|
||||||
b.OffsetTo(5.0, 5.0);
|
b.OffsetTo(5.0, 5.0);
|
||||||
BButton* control = new BButton(b, "button", "Label", NULL);
|
BButton* control = new BButton(b, "button", "Button", NULL);
|
||||||
view->AddChild(control);
|
view->AddChild(control);
|
||||||
|
|
||||||
|
b.bottom = b.top + 20.0;
|
||||||
|
b.OffsetTo(5.0, view->Bounds().bottom - (b.Height() + 5.0));
|
||||||
|
BCheckBox* checkBox = new BCheckBox(b, "check box", "CheckBox", NULL);
|
||||||
|
view->AddChild(checkBox);
|
||||||
|
|
||||||
window->Show();
|
window->Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user