Announcement

Collapse
No announcement yet.

RichEdit20A control doesn't attend OnChange Callbacks

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RichEdit20A control doesn't attend OnChange Callbacks

    Hi community,

    It seems that RichEdit control doesn't attend OnChange events. I wrote this code (excerpt):
    PHP Code:
    nsDialogs::CreateControl /NOUNLOAD "RichEdit20A"  ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}|${WS_TABSTOP}|${WS_VSCROLL}|${ES_MULTILINE}|${ES_WANTRETURN} ${WS_EX_STATICEDGE60 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

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

    Stu

    Comment


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

      Comment


      • #4
        Does anyone have any idea to solve it?
        Thx

        Comment


        • #5
          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

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎