#include #include #include #include #include extern int handle,_sbreite,_shoehe; int pop_up(int x,int y,int taste,char *text) { int b,h,t,tx,ty,my,onr,nr,dum; int tx2,len,anz=0,max=0; int *buff; char *tex2; tex2=text; while(*tex2) { len=(int)strlen(tex2); if(len>max) max=len; tex2+=(long)len+1; anz++; } b=max*8+10; h=(anz*16)+7; if(x+b>=_sbreite) x=_sbreite-1-b; if(y+h>=_shoehe) y=_shoehe-1-h; tx=x+5; ty=y+17; buff=alloc_mem(b,h); screen_to_form(x,y,b,h,buff); deffill(1,0,0); pbox(x,y,x+b,y+h); box(x+1,y+1,x+b-1,y+h-1); box(x+3,y+3,x+b-3,y+h-3); maus_aus(); for(t=0;ty+4 && my