home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
editor
/
me_cd.arc
/
POPUP.MUT
< prev
next >
Wrap
Text File
|
1988-05-05
|
928b
|
33 lines
; popup.mut : put a popup window on the screen
; The window is transient - it goes away on redraw.
; ME knows nothing about the window
; C Durland
(string ztop 85 blanks 85)
(int ulrow ulcol brow bcol)
(defun
popup-window (int row col width length) HIDDEN
{
(int j r)
(ulrow (brow (+ row 1)))(ulcol (bcol (+ col 1)))
(move-cursor row col)(puts "." (substr ztop 0 width) ".")
(for {(r ulrow)(j 0)} (< j length) {(+= j 1)(+= r 1)}
{
(move-cursor r col)
(puts "|" (substr blanks 0 width) "|")
})
(move-cursor r col)(puts "`" (substr ztop 0 width) "'")
}
wputs (string msg) HIDDEN
{
(move-cursor brow bcol)(puts msg)
(+= brow 1)
}
MAIN
{
(ztop "--------------------------------------------------------------------------------")
(blanks " ")
}
)