Leirbag
27th March 2011 11:00 UTC
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
27th March 2011 12:35 UTC
Try the more generic OnNotify (WM_NOTIFY). It really depends on what message(s) you want to handle?
Stu
Leirbag
27th March 2011 12:58 UTC
I'm afraid it didn't work, or I don't know how to put in paramaeters OnNotify.
Leirbag
29th March 2011 20:22 UTC
Does anyone have any idea to solve it?
Thx ;)
Afrow UK
29th March 2011 21:31 UTC
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