00001 #include "errorbox.h"
00002
00003 ErrorBox::ErrorBox(char *title, int x, int y, int w, int h)
00004 : BC_Window(title, x, y, w, h, w, h, 0)
00005 {
00006 }
00007
00008 ErrorBox::~ErrorBox()
00009 {
00010 }
00011
00012 int ErrorBox::create_objects(char *text)
00013 {
00014 int x = 10, y = 10;
00015 BC_Title *title;
00016
00017 add_subwindow(new BC_Title(get_w() / 2,
00018 y,
00019 text,
00020 MEDIUMFONT,
00021 get_resources()->default_text_color,
00022 1));
00023 x = get_w() / 2 - 30;
00024 y = get_h() - 50;
00025 add_tool(new BC_OKButton(x, y));
00026 return 0;
00027 }