home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Windowpop
-
- PARAMETERS _pop1, _pop2, _pop3, _pop4
-
- PRIVATE _trow, _tcol, _pop_temp, _ptemp, _popcol, _pop5
-
- IF PCOUNT() = 4
- _popcol = SETCOLOR()
- ELSEIF PCOUNT() = 0 .OR. PCOUNT() = 1
- IF PCOUNT() = 1
- scr_level = _pop1 + 1
- ENDIF
- _pop1 = VAL(SUBSTR(allwindows[scr_level - 1], 1, 2))
- _pop2 = VAL(SUBSTR(allwindows[scr_level - 1], 4, 2))
- _pop3 = VAL(SUBSTR(allwindows[scr_level - 1], 7, 2))
- _pop4 = VAL(SUBSTR(allwindows[scr_level - 1], 10, 2))
- _pop5 = VAL(SUBSTR(allwindows[scr_level - 1], 13, 2))
- IF _pop1 = -1
- RESTSCREEN(0,0,24,79, allscreens[scr_level-1] )
- scr_level = IF(scr_level = 1, scr_level, scr_level - 1)
- allscreens[scr_level+1] = ""
- allcolor[scr_level+1] = ""
- allwindows[scr_level] = ""
- RETURN(.T.)
- ENDIF
- ENDIF
- scrwrow = _pop1
- scrwcol = _pop2
- scrwdown = _pop3 - _pop1 - 1
- scrwover = _pop4 - _pop2 - 1
- _trow = VAL(SUBSTR(allwindows[scr_level - 1], 13, 2))
- _tcol = VAL(SUBSTR(allwindows[scr_level - 1], 16, 2))
-
- IF PCOUNT() != 1
- scr_level = IF(scr_level = 1, scr_level, scr_level - 1)
- ENDIF
- _pop_temp = ""
- _ptemp = ""
- _pop_temp = allscreens[scr_level]
- _ptemp = allcolor[scr_level]
- _pop5 = IF((TYPE("_pop5") = "U"), 3, _pop5)
-
- SETCOLOR(_ptemp)
-
- IF _pop4 >= 76
- _shadr = 79 && sr = shaded right column
- _pop4 = 76
- ELSE
- _shadr= _pop4 + 3
- ENDIF
-
- IF _pop3 >= 22
- _shadb = 23 && sb = shaded bottom row
- _pop3 = 22
- ELSE
- _shadb = _pop3 + 1
- ENDIF
-
- _pop2 = IF( (_pop2 <= 2), 2, _pop2 )
-
- IF _pop5 = 3 .OR. _pop5 = 93
- RESTSCREEN(_pop1, _pop2-1, _shadb, _shadr, _pop_temp)
- ELSEIF _pop5 = 0
- RESTSCREEN(_pop1, _pop2-1, _pop3, _pop4+1, _pop_temp)
- ELSEIF _pop5 = 1 .OR. _pop5 = 91
- RESTSCREEN(_pop1, _pop2-3, _pop3+1, _pop4, _pop_temp)
- ELSEIF _pop5 = 7 .OR. _pop5 = 97
- RESTSCREEN(_pop1-1, _pop2-3, _pop3, _pop4, _pop_temp)
- ELSEIF _pop5 = 9 .OR. _pop5 = 99
- RESTSCREEN(_pop1-1, _pop2-1, _pop3, _pop4+3, _pop_temp)
- ENDIF
-
- allscreens[scr_level+1] = ""
- allcolor[scr_level+1] = ""
- allwindows[scr_level] = ""
- @ _trow, _tcol SAY ""
- RETURN(.T.)
-
- * End of File
-