Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple timers
#8
Function Dialog126
Code:
Copy      Help
;/exe
;\Dialog_Editor

str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;3 Button 0x54032000 0x0 20 12 48 14 "Start"
;4 Button 0x54032000 0x0 20 30 48 14 "Stop"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030506 "*" "" "" ""

if(!ShowDialog(dd &sub.DlgProc 0)) ret


#sub DlgProc
function# hDlg message wParam lParam
__RegisterHotKey- t_hk1 t_hk2
sel message
,case WM_INITDIALOG
,t_hk1.Register(hDlg 1 MOD_CONTROL|MOD_SHIFT VK_F5) ;;Ctrl+Shift+F5
,t_hk2.Register(hDlg 2 MOD_ALT|MOD_WIN 'Q') ;;Alt+Win+Q
,
,case WM_HOTKEY
,sel wParam
,,case 1 but+ 3 hDlg
,,case 2 but+ 4 hDlg
,
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,case 3
,OnScreenDisplay "Start"
,case 4
,OnScreenDisplay "Stop"
ret 1

;BEGIN PROJECT
;main_function Dialog126
;exe_file $my qm$\Dialog126.exe
;icon <default>
;manifest $qm$\default.exe.manifest
;flags 6
;guid {2B095D9C-09F0-4D8A-A164-6DBD2E243CA5}
;END PROJECT


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)