03-04-2014, 09:59 AM
Hi Gintaras!
Dont know if that is a bug. I would like to set/update text in a read only edit and scroll down when new line is added. Example:
Function Dialog2
Macro Macro3
works fine but here stops at line 2828.
...
line 2825
line 2826
line 2827
li
can that limit be removed or do we have an alternate?
Thank you.
Dont know if that is a bug. I would like to set/update text in a read only edit and scroll down when new line is added. Example:
Function Dialog2
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str e3
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;3 Edit 0x54200844 0x20000 8 4 208 102 ""
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040003 "*" "" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
Macro Macro3
int w=win("Dialog" "#32770")
int c=id(3 w)
for _i 0 3500
,SendMessage(c EM_SETSEL -2 -2)
,SendMessage(c EM_REPLACESEL 0 F"line {_i}")
,SendMessage(c EM_REPLACESEL 0 "[]")
works fine but here stops at line 2828.
...
line 2825
line 2826
line 2827
li
can that limit be removed or do we have an alternate?
Thank you.