home *** CD-ROM | disk | FTP | other *** search
- '****************************************************************************
- ' WBOX.BAS - Fancy Demo using WBOX function.
- '****************************************************************************
- REM $DYNAMIC
- DEFINT A-Z 'Make all variables integers by default.
- CALL QWINIT(4) 'Need to call this command before using any QW commands.
-
- DIM SHARED w(2000) 'Dimension an integer array for our window.
- DIM SHARED c(10) 'Dim an integer array for our random values.
- CLS 'Clear the screen.
-
- '---- First lets open a window ----
- id = 1 'Setup id for the window.
- CALL WOPEN(3, 3, 78, 24, 2, &H4, "FUN BOX", w(), id)
-
- ' Initialize an integer array with some random numbers
- FOR i = 1 TO 8
- c(i) = INT(RND(10) * 7) + 1
- NEXT i
-
- CALL WCOLOR(id, &HF)
- FOR k = 1 TO 200
- CALL WLOCATE(id, 35, 9)
- CALL WPRINT(id, STR$(k))
- FOR i = 4 TO 32 STEP 4
- j = INT(i / 4) + 1
- CALL WBOX(id, 37 - i, 9 - j, 37 + i, 9 + j, c(j - 1), 5)
- NEXT i
- FOR j = 8 TO 1 STEP -1
- c(j) = c(j - 1)
- NEXT j
- c(1) = INT(RND(10) * 7) + 1
- NEXT k
-
- PRINT "Press ENTER:";
- INPUT a$
- CALL WCLOSE(id)
-
-
-
-
-
-