$VER: HTTXPlugin Control Panel 1.0 (28.8.99) by Gabriele Favrin
Control panel for HTTX. Use with AWeb 3.3SE or better.
*/
options results
if ~Show('L', 'rexxsupport.library') then do
call addlib('rexxsupport.library', 0, -30, 0)
end
eol='0A'x
'GET SCREEN VAR' awebscreen
host=address()
call InitPipe()
call ManageGUI()
exit 0
InitPipe:
if Showlist('H', 'AWNPIPE') then res=open(gui_fp, 'awnpipe:/-2010/xc', 'W')
if res ~= 1 then do
'request NOWAIT "Error" "To use this program you need AWNPipe:*N (Vers 2.10 or newer).*NInstall AWeb 3.3SE from the AWeb install script*Nor click on the CLICK ME icon in the AWeb drawer." "OK"'
exit 0
end
return
ManageGUI:
call WriteLN(gui_fp, '"'host' - Save/print text" dg db cg sk cs ps "'awebscreen'" e so si v a q m bf "AWebPath:Docs/awebbg.iff"'eol'menu gt "Project|About|$!HTTX AWeb plugin|$!Control Panel|Author|$!Written by Gabriele Favrin|$!using AWNPIPE: gui|!|@QQuit"'eol'layout b 0 so si v cj'eol'label gt "Save or print current document with HTTX"'eol'le'eol'layout b 0 si'eol'button gt "_Save as text"'eol'button gt "_Print as text"'eol'le'eol'layout b 0 si'eol'button gt "_Configure HTTX"'eol'button gt "_Help"'eol'le'eol'open')
do while ~(EOF(gui_fp))
call WriteLN(gui_fp, 'continue')
gad=ReadLN(gui_fp)
select
when gad == "gadget 4 0" then 'RUN "AWebPath:Plugins/HTTX/HTTXPlugin.awebrx"'
when gad == "gadget 5 0" then 'RUN "AWebPath:Plugins/HTTX/HTTXPluginPRT.awebrx"'
when gad == "gadget 7 0" then 'RUN "AWebPath:Plugins/HTTX/HTTXPluginCFG.awebrx"'
when gad == "gadget 8 0" | gad == "key 223 0" then 'OPEN "file:///AWebPath:Plugins/HTTX/HTTXPlugin.doc.html"'