AboutWindow::AboutWindow(void) : BWindow(BRect(100,100,500,400),"Lights Off!", B_MODAL_WINDOW_LOOK, B_MODAL_APP_WINDOW_FEEL, B_NOT_ZOOMABLE | B_NOT_RESIZABLE) { BScreen screen; BRect screenrect(screen.Frame()); AboutView *aboutview=new AboutView(Bounds()); AddChild(aboutview); MoveTo( (screenrect.Width()-Frame().Width())/2, (screenrect.Height()-Frame().Height())/2 ); }
AboutWindow::AboutWindow(void) : BWindow(BRect(100,100,500,400),"PalEdit", B_MODAL_WINDOW_LOOK, B_MODAL_APP_WINDOW_FEEL, B_NOT_ZOOMABLE | B_NOT_RESIZABLE | B_WILL_ACCEPT_FIRST_CLICK) { BScreen screen; BRect screenrect(screen.Frame()); AboutView *aboutview = new AboutView(Bounds()); AddChild(aboutview); aboutview->MakeFocus(true); MoveTo( (screenrect.Width()-Frame().Width())/2, (screenrect.Height()-Frame().Height())/2 ); }