home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Wdisplay
-
- PARAMETERS _thedisp, _dispwait, _disprow, _dispcol, _dispdown, _disprmar
-
- * _thedisp is the character string to display in the current window area
- * _disprow is the row to begin the display. Default will be 1
- * _dispcol is the column to begin the display. Default will be 1
- * _dispdown is the how many rows down
- * _disprmar is the number of columns over from the columns position.
- * if a negative number, then it will be the right marging
- * position
-
- IF PCOUNT() < 1
- RETURN(.F.)
- ELSEIF TYPE("_thedisp") != "C"
- RETURN(.F.)
- ENDIF
-
- IF PCOUNT() = 1
- _dispwait = .T.
- _disprow = WROW(1)
- _dispcol = WCOL(1)
- _dispdown = WDEPTH(0) - 2
- _disprmar = WWIDTH(0) - 2
- ELSEIF PCOUNT() = 2
- _disprow = WROW(1)
- _dispcol = WCOL(1)
- _dispdown = WDEPTH(0) - 2
- _disprmar = WWIDTH(0) - 2
- ELSEIF PCOUNT() = 3
- _dispdown = WDEPTH(0) - 2 - _disprow
- _disprow = WROW(_disprow)
- _dispcol = WCOL(1)
- _disprmar = WWIDTH(0) - 2
- ELSEIF PCOUNT() = 4
- _dispdown = WDEPTH(0) - 2 - _disprow
- _disprmar = WWIDTH(0) - 2 - _dispcol
- _disprow = WROW(_disprow)
- _dispcol = WCOL(_dispcol)
- ELSEIF PCOUNT() = 5
- _disprmar = WWIDTH(0) - 2 - _dispcol
- _disprow = WROW(_disprow)
- _dispcol = WCOL(_dispcol)
- _dispdown = WDEPTH(_dispdown)
- ELSE
- IF _disprmar < 0
- _disprmar = WWIDTH(_disprmar)
- ENDIF
- _disprmar = _disprmar - _dispcol
- _disprow = WROW(_disprow)
- _dispcol = WCOL(_dispcol)
- _dispdown = WDEPTH(_dispdown)
- ENDIF
-
- IF !_dispwait
- KEYBOARD CHR(27)
- ELSE
- ENDIF
-
- MEMOEDIT(_thedisp, _disprow, _dispcol, _disprow + _dispdown, _dispcol + _disprmar, .F.)
-
- RETURN(.T.)
-
- * End of File