home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
dev
/
e
/
amigae
/
src
/
class
/
scrollwin
/
textview.e
< prev
Wrap
Text File
|
1994-11-08
|
394b
|
16 lines
-> show a textfile in a nice juicy scrolling window
MODULE 'tools/file', 'tools/exceptions', 'class/sctext'
PROC main() HANDLE
DEF m,l,n,list,sc=NIL:PTR TO scrolltext
m,l:=readfile(arg)
list:=stringsinfile(m,l,n:=countstrings(m,l))
NEW sc.settext(list,100)
sc.open('TextView v0.1',20,20,300,150)
WHILE sc.handle()=FALSE DO Wait(-1)
EXCEPT DO
END sc
report_exception()
ENDPROC