home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Popscreen
-
- PARAMETERS _pop1, _pop2, _pop3, _pop4, _popshad, _popstype
-
- PRIVATE _poptemp
-
- scr_level = IF(scr_level = 1, scr_level, scr_level - 1)
-
- IF PCOUNT() = 4
- _popshad = .F.
- ELSEIF PCOUNT() = 0
- _pop1 = IF( EMPTY(SUBSTR(allwindows[scr_level], 1, 2)), 0, SUBSTR(allwindows[scr_level], 1, 2))
- _pop2 = IF(EMPTY(SUBSTR(allwindows[scr_level], 4, 2)), 0, SUBSTR(allwindows[scr_level], 4, 2))
- _pop3 = IF(EMPTY(SUBSTR(allwindows[scr_level], 7, 2)), 24, SUBSTR(allwindows[scr_level], 7, 2))
- _pop4 = IF(EMPTY(SUBSTR(allwindows[scr_level],10, 2)), 79, SUBSTR(allwindows[scr_level],10, 2))
- _popshad = SUBSTR(allwindows[scr_level],13)
- IF _popshad $ ".T..F."
- _popshad = &_popshad.
- ELSEIF EMPTY(_popshad) .OR. TYPE("_popshad") != "L"
- _popshad = .F.
- ENDIF
- _popstype = 1
- ELSEIF PCOUNT() = 5
- _popstype = 1
- ENDIF
-
- _poptemp = ""
-
- _poptemp = allscreens[scr_level]
- SETCOLOR(allcolor[scr_level])
-
- IF _popshad
- IF TYPE("_popstype") != "N"
- RESTSCREEN(_pop1, _pop2, _pop3, _pop4, _poptemp)
- ELSE
- DO CASE
- CASE _popstype = 1
- RESTSCREEN(_pop1, _pop2, _pop3+1, _pop4+2, _poptemp)
- CASE _popstype = 2
- RESTSCREEN(_pop1, _pop2-1, _pop3+1, _pop4, _poptemp)
- CASE _popstype = 3
- RESTSCREEN(_pop1-1, _pop2-1, _pop3, _pop4, _poptemp)
- CASE _popstype = 4
- RESTSCREEN(_pop1-1, _pop2, _pop3, _pop4+2, _poptemp)
- ENDCASE
- ENDIF
- ELSE
- RESTSCREEN(_pop1, _pop2, _pop3, _pop4, _poptemp)
- ENDIF
-
- allwindows[scr_level+1] = ""
- allscreens[scr_level+1] = ""
- allcolor[scr_level+1] = ""
- RELEASE _poptemp
- RETURN(scr_level)
-
- * End of File
-
-