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:
parent
a4365bfe01
commit
af1a2a015b
@ -4,6 +4,7 @@
|
||||
|
||||
#include "Application.h"
|
||||
#include "Button.h"
|
||||
#include "CheckBox.h"
|
||||
#include "View.h"
|
||||
#include "Window.h"
|
||||
|
||||
@ -86,9 +87,14 @@ show_window(BRect frame, const char* name)
|
||||
BRect b(view->Bounds());
|
||||
b.InsetBy(20.0, 40.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);
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user