home *** CD-ROM | disk | FTP | other *** search
- Procedure drawbox_ibm (x1,y1,x2,y2,FG,BG : Integer; boxname : names; blnk : boolean);
- Begin
- window (x1,y1,x2,y1+1);
- textbackground(BG);
- GotoXY(1,1);
- x := x2-x1;
- if length(boxname) > x then boxname[0] := chr(x-4);
- textcolor(FG);
- Write('╒');
- if blnk then textcolor(FG + blink) else textcolor(fg);
- write (boxname);
- textcolor(FG);
- for q := x1+length(boxname)+1 to x2-1 do Write('═');
- Write('╕');
- for q := 2 to y2-y1 do
- Begin
- window (x1,y1,x2,y1+q+1);
- GotoXY(1,q); Write('│');
- if blnk then clreol;
- GotoXY(x2-x1+1,q); Write('│');
- end;
- Window(x1,y1,x2,y2+1);
- gotoXY(1,y2-y1+1);
- Write('╘');
- for q := x1+1 to x2-1 do Write('═');
- Write('╛');
- end;
-
- Procedure drawbox (x1,y1,x2,y2,FG,BG : Integer; boxname : Names; blnk : boolean);
- Begin
- Drawbox_IBM (x1,y1,x2,y2,FG,BG,boxname,blnk);
- Window (x1+1,y1+1,x2-1,y2-1);
- Clrscr;
- end;
-