03-29-2023, 03:08 PM
Hi,
Using the following code, when modified, syntax coloring will be lost. Can syntax coloring be performed in real time?
![[Image: 1680361616]](https://download.ru/g/mmCIKOlx/UuQpzLcEDAs_31SyGD2_-Q/1680361616)
Macro Macro2
Using the following code, when modified, syntax coloring will be lost. Can syntax coloring be performed in real time?
Macro Macro2
str ss.getmacro
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;3 QM_DlgInfo 0x54000000 0x20004 0 0 224 112 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040C02 "*" "" "" "3"
str controls = "3"
str qmdi3
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc v
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,str s=
,F
,;<><code>{ss}</code>
,s.setwintext(id(3 hDlg))
,SendMessage(id(3 hDlg) SCI.SCI_SETREADONLY 0 0)
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1