#include #include #include #include #include #include #include #include #define ALL_DONE 2 #define DONE_WITH_THIS 1 #define FORGET_ALL 0 #define FORGET_THIS 3 #include "struct.h" #define EV_MASK (ButtonPressMask |\ KeyPressMask |\ ExposureMask |\ StructureNotifyMask) extern Display *display; extern Window main_win; extern unsigned int MyBackColor,MyForeColor; extern int screen; extern GC gc; extern int xor_flag,DCURY,DCURX,CURY_OFF,CURS_X,CURS_Y; destroy_choice(p) CHOICE_BOX p; { XDestroySubwindows(display,p.base); XDestroyWindow(display,p.base); } display_choice(w,p) Window w; CHOICE_BOX p; { int i; int n=p.n; XSetFillStyle(display,gc,FillSolid); XSetForeground(display,gc,MyForeColor); if(w==p.ok)XDrawString(display,w,gc,0,CURY_OFF,"Ok",2); if(w==p.cancel) XDrawString(display,w,gc,0,CURY_OFF,"Cancel",6); for(i=0;i