+int ModifyTargetPatternsGUI::resize_event(int w, int h)
+{
+ int tx = scroll_text_box->get_x();
+ int ty = scroll_text_box->get_y();
+ int th = h - ty - BC_OKButton::calculate_h() - 20;
+ int tw = w - 20;
+ int rows = th / text_rowsz;
+ scroll_text_box->reposition_window(tx, ty, tw, rows);
+ ok_button->resize_event(w, h);
+ cancel_button->resize_event(w, h);
+ return 1;
+}
+