04-29-2018, 07:16 AM
try this its working for me
Function Dialog_Quiz
Function Dialog_Quiz
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 548 318 "Dialog"
;3 ActiveX 0x54030000 0x0 0 0 548 320 "SHDocVw.WebBrowser {8856F961-340A-11D0-A96B-00C04FD705A2}"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""
str controls = "3"
str ax3SHD
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
int- t_mainDlg
sel message
,case WM_INITDIALOG
,t_mainDlg=hDlg
,SHDocVw.WebBrowser we3
,we3._getcontrol(id(3 hDlg))
,str s.expandpath("$Desktop$\quiz.html")
,we3.Navigate(s)
,we3._setevents("sub.we3")
,case WM_DESTROY
,case WM_COMMAND goto messages2
,case WM_CLOSE
,DT_Ok(hDlg)
ret
;messages2
sel wParam
,case IDOK
,ifk(Y) ;; Enter
,,key Y ;; Enter
,,ret 0
,case IDCANCEL
,ifk(Z) ;; Esc
,,key Z
,,ret 0
ret 1
#sub we3_DocumentComplete
function IDispatch'pDisp `&URL ;;SHDocVw.IWebBrowser2'we3
int- t_mainDlg
Htm e=htm("EMBED" "sf" "" t_mainDlg "0" 0 0x221)
e.SetFocus