#include #include #include Frame frame; char s[80]; void x_message(s) { Panel panel; Menu menu; void notify_proc_mess(); void my_event_proc(); int selected(); xv_init(NULL); frame = (Frame) xv_create(NULL, FRAME, FRAME_LABEL, "MESSAGE", FRAME_SHOW_RESIZE_CORNER, FALSE, XV_X, 400, XV_Y, 300, NULL); panel = (Panel) xv_create(frame, PANEL, NULL); (void) xv_create(panel, PANEL_BUTTON, PANEL_LABEL_BOLD, TRUE, PANEL_LABEL_STRING, "CONTINUE/OK", PANEL_NOTIFY_PROC, notify_proc_mess, NULL); (void) xv_create(panel, PANEL_MESSAGE, PANEL_LABEL_BOLD, TRUE, PANEL_LABEL_STRING, s, NULL); window_fit(panel); window_fit(frame); xv_main_loop(frame); } void notify_proc_mess(menu, menu_item) Menu menu; Menu_item menu_item; { xv_destroy_safe(frame); }