Archive: RichEdit20A control doesn't attend OnChange Callbacks


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

Try the more generic OnNotify (WM_NOTIFY). It really depends on what message(s) you want to handle?

Stu


I'm afraid it didn't work, or I don't know how to put in paramaeters OnNotify.


Does anyone have any idea to solve it?
Thx ;)


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