Skip to content
⌘ NSIS Forum Archive

RichEdit20A control doesn't attend OnChange Callbacks

5 posts

Leirbag#

RichEdit20A control doesn't attend OnChange Callbacks

Hi community,

It seems that RichEdit control doesn't attend OnChange events. I wrote this code (excerpt):
nsDialogs::CreateControl /NOUNLOAD "RichEdit20A"  ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}|${WS_TABSTOP}|${WS_VSCROLL}|${ES_MULTILINE}|${ES_WANTRETURN} ${WS_EX_STATICEDGE} 60 120 300 60 ''"
Pop $InstallKeyMultiline 
GetFunctionAddress $0 InstallKeyRTF_OnChange 
nsDialogs::OnChange $InstallKeyMultiline $0 
I've changed by macros (${NSD_OnChange} $InstallKeyMultiline "InstallKeyRTF_OnChange")
but it didn't work at all.

Any ideas,

Thank you in advance,
Gabriel
Afrow UK#
Try the more generic OnNotify (WM_NOTIFY). It really depends on what message(s) you want to handle?

Stu
Afrow UK#
Determine which window message you need to handle (on MSDN) and find out how you need to receive it. For example, some Windows controls send a WM_NOTIFY message which is what fires the OnNotify function. OnChange is just a handler for a couple of common window messages but not all. If none of the nsDialogs callbacks work chances are nsDialogs does not handle that particular window message.

Stu