1 #include "bcwidgetgrid.h"
4 ErrorBox::ErrorBox(char *title, int x, int y, int w, int h)
5 : BC_Window(title, x, y, w, h, w, h, 0)
13 int ErrorBox::create_objects(char *text)
19 BC_RelocatableWidget *rw;
21 wg = add_widgetgrid(new BC_WidgetGrid(10, 10, 10, 10, 3, 3));
24 add_subwindow(new BC_Title(get_w() / 2,
28 get_resources()->default_text_color,
34 add_tool(new BC_OKButton(x, y));
37 resize_window(wg->get_w_wm(), wg->get_h_wm() + rw->get_h());
38 rw->reposition_widget(get_w() / 2 - rw->get_w() / 2, rw->get_y());
39 printf("x %d %d\n",get_w() / 2 - rw->get_w() / 2, rw->get_y());
45 // c-file-style: "linux"