home *** CD-ROM | disk | FTP | other *** search
- * Program Name: shdwdemo.prg
-
- set scoreboard off
-
- * Set defaults
- top = 7
- left = 20
- bottom = 15
- right = 60
-
- * If monitor is color, set it.
- if iscolor()
- setcolor( "gr+/b")
- endif
-
- clear
-
- * Continue until <Esc> is pressed.
- do while lastkey() != 27
-
- * Create a box for entering data & enter box coordinates.
- @ 0, 0 to 5, 17
- @ 0, 2 say " <Esc> to Exit "
- scroll( 1, 1, 4, 16, 0)
- shadow( 0, 0, 5, 17)
-
- @ 1, 1 say "Top : " get top picture "99"
- @ 2, 1 say "Left : " get left picture "99"
- @ 3, 1 say "Bottom : " get bottom picture "99"
- @ 4, 1 say "Right : " get right picture "99"
- read
-
- * Put any junk on screen so that shadowing can be seen.
- for j = 0 to 24
- @ j, 0 say str( j, 2) + " DEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz2345678901234567890123456789"
- next j
-
- * Draw box outline
- @ top, left TO bottom, right double
-
- * Clear the inside of the box.
- scroll( top + 1, left + 1, bottom - 1, right - 1, 0)
-
- * Shadow the box.
- Shadow( top, left, bottom, right)
-
- enddo
-
- clear
-