Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to define a single hotkey in a dialog box
#22
Error (RT) in <open ":1: /977">Macro2:we3_DocumentComplete:  this variable not initialized.    <help #IDP_ERR>?

Macro Macro1
Code:
Copy      Help
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))
,we3.Navigate("http://static.focusky.com/web/demo/Eduction/Complexity Thoughts/index.html")

,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

How to hide the right scroll bar? I did not find the style options


Attached Files Image(s)
   


Messages In This Thread
RE: How to define a single hotkey in a dialog box - by win - 04-29-2018, 04:53 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)