home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
windows
/
kpwdemo.zip
/
ENGINEDE.SRC
< prev
next >
Wrap
Text File
|
1990-06-28
|
2KB
|
91 lines
displayInfo ().
if ?version is 3 then width is 83 else :width is 70.
w1 is window (,5,2,?width,23,,[PopUp,ThickFrame,TitleBar,VertScroll,ShowChildren,Siblings],,,,close_event).
m1 is menu ([&Read,&Top,&Back,&Print,&Quit,&Help],select).
disable_menu_item (?m1,[&Top,&Back,&Print]).
show_window (?w1).
topic select (item).
do (?item).
topic &Read.
close_all ().
temp is file_menu ('*.hyp',,'Text File to Read').
if ?temp is []
then exit ().
txtfile is ?temp.
message is read (?txtfile,'//','//').
close (?txtfile).
top is string_replace (first (?message),'//').
enable_menu_item (?m1,[&Top,&Back,&Print]).
mark (?top).
end.
topic &Quit.
new_kb ('demo.ckb').
end. (* mQuit *)
topic &Top.
list is [].
mark (?top).
end.
topic &Back.
list is remove (?list,last (?list)).
if ?list is []
then mark (?top)
else item is last (?list) and
list is remove (?list,?item) and
mark (?item).
end. (* Back *)
topic &Print.
print (get_text ()).
end.
topic &help.
text (#e,'
Reading Hypertext.
The line below shows the font used for hypertext
on your monitor.
#mThis is the font for hypertext on the current monitor.#m
To select hypertext, point and click with the mouse
or, use TAB and SHIFT TAB to move the cursor among
hypertext items and press ENTER to select the item.
To go back to the previous screen, select BACK.
To return to the first screen, select TOP.
To print the current item, select PRINT.').
topic 'This is the font for hypertext on the current monitor.'.
(* this is a dummy topic to catch the hypertext in the help screen.*)
end.
end.
end. (* select *)
topic mark (item).
list gets (?item).
set_title (,?item).
link is read (?txtfile, concat ('//',?item),'//') .
if ?link is number_to_char (26)
then link is '
There is no further information for this item'.
text (#e,?link).
close (?txtfile).
end. (* mark *)
topic displayInfo.
system is system_info ().
if last (?system) > 2
then hyper_display (blue).
version is string_copy (element (?system,9),1,1).
end.