03-05-2009, 05:52 PM
Function Name
i want the macro25 to get the text from id(5"Name")
and then count up and paste into another static text.
i was trying to use notepad as an example
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "5"
str e5
str dd=
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 118 "Dialog"
;1 Button 0x54030001 0x4 102 90 48 14 "OK"
;2 Button 0x54030000 0x4 154 90 48 14 "Cancel"
;4 Button 0x54032000 0x0 44 90 48 14 "Run"
;5 Edit 0x54030080 0x200 10 20 96 14 ""
;6 Static 0x54000000 0x0 12 6 48 12 "Name"
;3 Button 0x54020007 0x0 4 0 206 110 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030008 "" "" ""
if(!ShowDialog(dd &Name &controls)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4
,mac "Macro25"
,case IDOK
,case IDCANCEL
ret 1
i want the macro25 to get the text from id(5"Name")
and then count up and paste into another static text.
i was trying to use notepad as an example