create:
DO
guierr = "SYNTAX"
guiheading = 1
mybrowser = ARG(1)
guicreatewindow("NORMAL", -1)
guisetctlplacement("MyBrowser", , , width, height)
continue = 1
again:
DO WHILE continue
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
END
FINALLY
guidestroywindow()
END
RETURN 0
wm_close:
continue = 0
RETURN
wm_size:
width = ARG(3)
height = ARG(4)
IF guiinfo("HANDLE", "MyBrowser", 2) \== "" THEN
guisetctlplacement("MyBrowser", , , width, height)
RETURN |