06-20-2013, 10:49 PM
Sorry for these 2 very simple questions I tried to look in the Windows API library for question 2.
Question 1
If want to check if a certain button is pressed in the " \Dialog_Editor" code, I do the following
Check what "wParam" outputs when I press a button, for example it outputs: 33554436
Then in QuickMacros in the " \Dialog_Editor", I do the following
Function test1
Is this correct or is there a faster (better) way ?
Question 2
I have a very simple smart dialog and want to get the output of the text edit-field and the checkbox.
I want to get the output of the text-field and checkbox in the below generated code.
Function dialogtest
The code generated after rendering the above code is:
Macro Macro13
I can get the output of the 2 elements (text-field and checkbox) very easily here, but I want to get the output in the above "\Dialog_Editor" code.
Question 1
If want to check if a certain button is pressed in the " \Dialog_Editor" code, I do the following
Check what "wParam" outputs when I press a button, for example it outputs: 33554436
Then in QuickMacros in the " \Dialog_Editor", I do the following
Function test1
sel wParam
,case 33554436
,,...[PROCESS CODE ON BUTTON PRESS]...
,case IDOK
,case IDCANCEL
ret 1Is this correct or is there a faster (better) way ?
Question 2
I have a very simple smart dialog and want to get the output of the text edit-field and the checkbox.
I want to get the output of the text-field and checkbox in the below generated code.
Function dialogtest
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;3 Edit 0x54030080 0x200 4 26 96 14 ""
;4 Button 0x54012003 0x0 110 26 48 12 "Check"
;5 Button 0x54032000 0x0 4 52 48 14 "Button"
;END DIALOG
;DIALOG EDITOR: "" 0x2030307 "" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1The code generated after rendering the above code is:
Macro Macro13
str controls = "3 4"
str e3 c4Che
if(!ShowDialog("dialogtest" &dialogtest &controls)) retI can get the output of the 2 elements (text-field and checkbox) very easily here, but I want to get the output in the above "\Dialog_Editor" code.
