create:
guierr = "SYNTAX"
guiheading = 1
myheadings.1 = "File menu"
myheadings.1.1 = "Open"
myheadings.1.2 = "Save"
myheadings.1.3 = "Exit"
myurls.1 = ""
myurls.1.1 = "FileOpen"
myurls.1.2 = "FileSave"
myurls.1.3 = "FileExit"
guicreatewindow("NORMAL", ARG(1))
RETURN
destroy:
guidestroywindow()
RETURN
wm_size:
IF guiinfo("HANDLE", "Selection", 2) \== "" THEN
guisetctlplacement("Selection", ARG(1), ARG(2), ARG(3), ARG(4))
RETURN ""
wm_selchanged_selection:
guigetctlvalue("Selection")
url = VALUE("MyUrls."||selection)
IF url \== "" THEN
guiwake("its:Help.chm::" || url || ".htm")
ELSE
guiwake("about:blank")
RETURN |