home *** CD-ROM | disk | FTP | other *** search
- *******************
-
- FUNCTION Pan
-
- PARAMETERS _style
-
- * _style = 0 or no parameter = clear screen
- * _stype = 6 fade from left to right
- * _style = 4 fade from right to left
- * _style = 8 fade from bottom to top
- * _style = 2 fade from top to bottom
-
- _style = IF( TYPE("_style") != "N", 0, _style)
- IF TYPE("_style") != "N"
- RETURN(.F.)
- ENDIF
-
- IF TYPE("allwindows") != "A" .OR. TYPE("scr_level") != "N"
- _clr1 = -1
- _clr2 = -1
- _clr3 = 25
- _clr4 = 80
- ELSE
- IF scr_level - 1 < 1
- _clr1 = -1
- _clr2 = -1
- _clr3 = 25
- _clr4 = 80
- ELSE
- _clr1 = VAL(SUBSTR(allwindows[scr_level - 1], 1, 2))
- _clr2 = VAL(SUBSTR(allwindows[scr_level - 1], 4, 2))
- _clr3 = VAL(SUBSTR(allwindows[scr_level - 1], 7, 2))
- _clr4 = VAL(SUBSTR(allwindows[scr_level - 1], 10, 2))
- ENDIF
- ENDIF
-
- IF _clr3 <= _clr1
- _clr1 = -1
- _clr2 = -1
- _clr3 = 25
- _clr4 = 80
- ENDIF
-
- IF _style = 4
- _times = ((_clr4-1) - (_clr2+1))
- FOR _qaz = 1 TO _times
- RESTSCREEN(_clr1 + 1, _clr2 + 1, _clr3 - 1, _clr4 - 2, SAVESCREEN(_clr1 + 1, _clr2 + 2, _clr3 - 1, _clr4 - 1))
- SCROLL(_clr1 + 1, _clr4 - 1, _clr3 - 1, _clr4 - 1, 0)
- _clr4 = _clr4 - 1
- INKEY(.01)
- NEXT
-
- ELSEIF _style = 6
- * take the bottom right coordinates, increment by one every
- * time and move to the right. Re-adjust the top left coordinate
- * and repeate, blanking out the strip on the left.
-
- _times = ((_clr4-1) - (_clr2+1))
- FOR _qaz = 1 TO _times
- RESTSCREEN(_clr1 + 1, _clr2 + 2, _clr3 - 1, _clr4 - 1, SAVESCREEN(_clr1 + 1, _clr2 + 1, _clr3 - 1, _clr4 - 2))
- SCROLL(_clr1 + 1, _clr2 + 1, _clr3 - 1, _clr2 + 1, 0)
- _clr2 = _clr2 + 1
- INKEY(.01)
- NEXT
-
- ELSEIF _style = 2
- FOR _qaz = _clr1 + 1 TO _clr3 - 1
- SCROLL(_clr1 + 1, _clr2 + 1, _clr3 - 1, _clr4 - 1,-1)
- INKEY(.01)
- NEXT
- ELSEIF _style = 8
- FOR _qaz = _clr1 + 1 TO _clr3 - 1
- SCROLL(_clr1 + 1, _clr2 + 1, _clr3 - 1, _clr4 - 1,1)
- INKEY(.01)
- NEXT
- ELSE
- SCROLL(_clr1 + 1, _clr2 + 1, _clr3 - 1, _clr4 - 1,0)
- ENDIF
- RETURN(.T.)
-
- * End of File
-
-