06-01-2015, 05:16 PM
Don't need to close dialog. Click Compile button in QM toolbar.
Function recomp also is possible, if the code to be immediately recompiled is in other functions.
Function recomp
Function test_compile
Function recomp also is possible, if the code to be immediately recompiled is in other functions.
Function recomp
Function test_compile
\Dialog_Editor
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 192 141 "Dialog"
;3 ComboBox 0x54230243 0x0 88 10 96 213 ""
;54 Button 0x54032000 0x0 8 104 118 26 "process"
;2 Button 0x54030000 0x4 134 118 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040202 "*" "" "" ""
if(!ShowDialog(dd &sub.DlgProc 0 _hwndqm)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 54 ;; button "process": once user clicks this, the dialog executes
,,recomp
,,
,,out 1 ;;recomp does not work immediately for code that is in the function that calls it, or in its caller functions. The new code will be executed next time.
,,
,,sub.Func1
,,sub.Func2
,case IDCANCEL
ret 1
;recomp works immediately only for code in called functions and subfunctions
#sub Func1
out 2 ;;change this and click 'process' button
#sub Func2
out 3 ;;change this and click 'process' button