From af1a2a015b43e3795cad82d431b144b5da1e8f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 15 Apr 2005 17:46:37 +0000 Subject: [PATCH] draw a check box, too git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12423 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/servers/app/windows/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tests/servers/app/windows/main.cpp b/src/tests/servers/app/windows/main.cpp index 8b06661aca..e2dcf1db14 100644 --- a/src/tests/servers/app/windows/main.cpp +++ b/src/tests/servers/app/windows/main.cpp @@ -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(); }