Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM_DlgInfo control syntax coloring
#1
Hi,

Using the following code, when modified, syntax coloring will be lost. Can syntax coloring be performed in real time?
[Image: 1680361616]



Macro Macro2
Code:
Copy      Help
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


Messages In This Thread
QM_DlgInfo control syntax coloring - by Davider - 03-29-2023, 03:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)