home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
PRINTING
/
DBFSCR20.ZIP
/
CBBOX.C
next >
Wrap
Text File
|
1990-10-31
|
951b
|
57 lines
#include <s3.h>
#define CB_DOUBLE 1
#define CB_SINGLE 0
cb_box(ur,uc,lr,lc,dbox)
int ur, uc, lr, lc, dbox;
char boxtype[6]; /* ul ur hor vert ll lr */
{
int i;
char boxtype[6];
if(dbox)
{
boxtype[0] = '╔';
boxtype[1] = '╗';
boxtype[2] = '═';
boxtype[3] = '║';
boxtype[4] = '╚';
boxtype[5] = '╝';
}
else
{
boxtype[0] = '┌';
boxtype[1] = '┐';
boxtype[2] = '─';
boxtype[3] = '│';
boxtype[4] = '└';
boxtype[5] = '┘';
}
s3(ur,uc,boxtype[0]);
s3(ur,lc,boxtype[1]);
for(i=++uc;i<lc;i++)
{
s3(ur,i,boxtype[2]);
s3(lr,i,boxtype[2]);
}
for(i=++ur;i<lr;i++)
{
s3(i,uc,boxtype[3]);
s3(i,lc,boxtype[3]);
}
s3(lr,uc,boxtype[4]);
s3(lr,lc,boxtype[5]);
if(ur == lr)
{
s3(ur,uc,boxtype[2]);
s3(ur,lc,boxtype[2]);
}
if(uc == lc)
{
s3(ur,uc,boxtype[3]);
s3(lr,uc,boxtype[3]);
}
}