- int x = 10, y = 10;
- add_subwindow(new BC_TextBox(x, y, get_w()-50, 3, thread->warn_text));
- y = get_h() - 30;
- add_subwindow(new WDisable(this, x, y));
- y = get_h() - BC_CancelButton::calculate_h() - 10;
- x = get_w() - BC_CancelButton::calculate_w() - 10;
+ int x = xS(10), y = yS(10);
+ add_subwindow(new BC_TextBox(x, y, get_w()-xS(50), 3, thread->warn_text));
+ y = get_h() - yS(30);
+ if( thread->do_warning )
+ add_subwindow(new WDisable(this, x, y));
+ y = get_h() - BC_CancelButton::calculate_h() - yS(10);
+ x = get_w() - BC_CancelButton::calculate_w() - xS(10);