add: BRect b(view->Bounds()); b.InsetBy(20.0, 40.0); b.OffsetTo(5.0, 5.0); BButton* control = new BButton(b, "button", "Label", NULL); view->AddChild(control);
context: show_window(BRect frame, const char* name){	BWindow* window = new BWindow(frame, name,								  B_TITLED_WINDOW,								  B_ASYNCHRONOUS_CONTROLS | B_QUIT_ON_WINDOW_CLOSE);	BView* view = new HelloView(window->Bounds(), "test", B_FOLLOW_ALL,								B_WILL_DRAW/* | B_FULL_UPDATE_ON_RESIZE*/);	view->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));	window->AddChild(view);/*	BRect b(view->Bounds());	b.InsetBy(10.0, 20.0);	BTextControl* control = new BTextControl(b, "tc", "Text", "Enter Text Here", NULL);	view->AddChild(control);*/	window->Show();}