CONST False = 0
CONST True = NOT False
SUB Draw.3DBox (X% AS SHORT, Y% AS SHORT, XX% AS SHORT, YY% AS SHORT, _
C% AS SHORT, C2% AS SHORT, BC% AS SHORT, Solid% AS SHORT, Indent AS SHORT)
Char1$ = "Ú"
CharHoz$ = "Ä"
Char2$ = "¿"
CharVert$ = "³"
Char3$ = "À"
Char4$ = "Ù"
COLOR C%, BC%
A = (XX% - X%) - 1
IF Indent THEN
COLOR C2%
LOCATE Y%, X%: PRINT Char1$; STRING$(A, CharHoz$);
COLOR C%: PRINT Char2$;
ELSE
LOCATE Y%, X%: PRINT Char1$; STRING$(A, CharHoz$);
COLOR C2%: PRINT Char2$;
END IF
FOR I = Y% + 1 TO YY% - 1
IF Indent THEN
COLOR C2%
ELSE
COLOR C%
END IF
LOCATE I, X%: PRINT CharVert$;
IF Solid% THEN
PRINT SPACE$(A);
END IF
IF Indent THEN
COLOR C%
ELSE
COLOR C2%
END IF
LOCATE I, XX%: PRINT CharVert$;
NEXT I
LOCATE YY%, X%
IF Indent THEN
COLOR C2%
ELSE
COLOR C%
END IF
PRINT Char3$;
IF Indent THEN
COLOR C%
ELSE
COLOR C2%
END IF
PRINT STRING$(A, CharHoz$); Char4$;
END SUB
CLS
Draw.3DBox 1, 1, 80, 24, 15, 0, 7, True, False
Draw.3DBox 3, 2, 78, 23, 15, 0, 7, False, True
LOCATE 25,1: COLOR ,3:?SPACE$(79);
POKE 3999, 3*16
DO:LOOP UNTIL INKEY$<>""
COLOR 7,0
CLS
|