09-13-2013, 08:05 PM
I have the below dialog and would like to snatch the value of the name of button 5 and put it into a string or set the name of the button to a string either way.
How can I best do this?
Function Dialog4
How can I best do this?
Function Dialog4
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 297 117 "Dialog"
;3 Button 0x54032000 0x0 0 14 22 11 "Start"
;4 Button 0x54032000 0x0 23 14 22 11 "End"
;5 Static 0x5440C001 0x0 0 2 45 11 "1st Test"
;2 Button 0x54030000 0x0 248 0 48 14 "Close"
;END DIALOG
;DIALOG EDITOR: "" 0x2030601 "" "" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4 ;;button clicked
,,EnableWindow id(4 hDlg) 0
,,EnableWindow id(3 hDlg) 1
,,EnableWindow id(2 hDlg) 1
,,;
,case 3 ;;button clicked
,,EnableWindow id(3 hDlg) 0
,,EnableWindow id(4 hDlg) 1
,,EnableWindow id(2 hDlg) 0
ret 1