Category : Files from Magazines
Archive   : VOL9N19.ZIP
Filename : SBOX

 
Output of file : SBOX contained in archive : VOL9N19.ZIP

*
* TEST program for procedure sbox
*
SET COLOR TO w+/r
CLEAR
pcmag="PC Magazine PC Magazine PC Mag"+;
"azine PC Magazine PC Magazine "+;
"PC Magazine PC Mag"
single = CHR(218)+CHR(196)+CHR(191)+;
CHR(179)+CHR(217)+CHR(196)+CHR(192)+;
CHR(179)
@ 0,0,24,79 BOX single+"x"
i = 1
DO WHILE i <=23
@ i,1 SAY pcmag
i = i + 1
ENDDO
DO sbox WITH 7,20,17,60,"w+/gr"
@ 12,27 SAY "Hello!"
@ 12,34 SAY "Can you see my shadow?"
INKEY(0)
RETURN
*
* PROCEDURE sbox(x1, y1, x2, y2, clr)
*
* draw box with shadow
*
PROCEDURE sbox
PARAMETERS x1, y1, x2, y2, clr
PRIVATE v,h,i
v = SAVESCREEN(x1+1,y2+1,x2+1,y2+2) && save shaded
h = SAVESCREEN(x2+1,y1+2,x2+1,y2+2) && area
FOR i = 2 TO LEN(h) STEP 2 && dim the
h = STUFF(h,i,1,CHR(7)) && area with
NEXT && color "w/n"
&& (chr(7))
FOR i = 2 TO LEN(v) STEP 2
v = STUFF(v,i,1,CHR(7))
NEXT
SET COLOR TO &clr
@ x1,y1 CLEAR TO x2,y2 && draw box
@ x1,y1 TO x2,y2
RESTSCREEN(x1+1,y2+1,x2+1,y2+2,v) && draw its
RESTSCREEN(x2+1,y1+2,x2+1,y2+2,h) && shadow
RETURN




  3 Responses to “Category : Files from Magazines
Archive   : VOL9N19.ZIP
Filename : SBOX

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/