07-15-2018, 09:18 AM
In the dialog which it follows the text in control 9 is displayed on the proper moment if EditReplaceSel is used. However, if setwintext is used the text is displayed after the 5sec delay. Any advice on this issue is mostly welcome.
Function Dialog53
Function Dialog53
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;3 Button 0x54032000 0x0 11 7 48 14 "Button"
;9 Edit 0x54030880 0x200 10 29 203 12 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""
str controls = "9"
str e9
if(!ShowDialog(dd &sub.DlgProc &controls)) 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 IDOK
,case IDCANCEL
,case 3
,_s="Test Text"
;,_s.setwintext(id(9 hDlg))
;,www.quickmacros.com/forum/showthread.php?tid=6398&pid=31094&highlight=setwintext*#pid31094
;,DT_SetControl(hDlg 9 _s)
,EditReplaceSel(hDlg 9 _s 1)
,1
,mac "ClepsydraSPU"
,5
,shutdown -6 0 "ClepsydraSPU"
,
,
ret 1