OPTIONS "C_CALL"
NUMERIC DIGITS 10
LIBRARY rexxgui
guierr = "SYNTAX"
guiheading = 1
guiwindowdefaults(, , , , "HTML")
guicreatewindow('NORMAL')
createobject("HelpContents.rex", , , guiwindow)
createobject("HelpBox.rex", , , guiwindow, "about:blank")
again:
DO FOREVER
guigetmsg()
IF EXISTS('GuiObject') \== 0 THEN DO
IF EXISTS('GuiSignal') == 0 THEN DROP (guiobject)
ELSE SELECT guiobject
WHEN "HELPCONTENTS" THEN displayurl(guisignal)
END
END
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
fileexit:
guisendmsg(, "POST CLOSE")
RETURN
displayurl:
IF EXISTS("HELPBOX") == 0 THEN
createobject("HelpBox.rex", , , guiwindow, ARG(1))
ELSE
helpbox~seturl(ARG(1))
RETURN |