Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rtf control, en_change?
#1
Is there a way to detect text change in an rich editfield, EN_CHANGE does not work.
With timer I could do get text and compare it with original text but I was hoping there might be a better way?

Function rtf_ctrl__en_change__test
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 108 "Dialog"
;3 RichEdit20A 0x54233044 0x200 1 2 220 103 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2040601 "*" "" "" ""

str controls = "3"
str re3
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 EN_CHANGE<<16|3
,,out "text modified..."
ret 1


Messages In This Thread
rtf control, en_change? - by r0n - 01-03-2020, 12:59 PM
RE: rtf control, en_change? - by Gintaras - 01-03-2020, 01:12 PM
RE: rtf control, en_change? - by r0n - 01-03-2020, 02:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)