1. How do i get onChange event from RichEdit?
- Posted by Thomas Julin <foxrym at yahoo.com> Mar 18, 2006
- 954 views
How do i get onChange event from RichEdit? foxrym.
2. Re: How do i get onChange event from RichEdit?
- Posted by don cole <doncole at pacbell.net> Mar 19, 2006
- 955 views
Thomas Julin wrote: > > > How do i get onChange event from RichEdit? > > foxrym. Same way you would with any other Control. Don Cole
3. Re: How do i get onChange event from RichEdit?
- Posted by Thomas Julin <foxrym at yahoo.com> Mar 19, 2006
- 963 views
don cole wrote: > > Thomas Julin wrote: > > > > > > How do i get onChange event from RichEdit? > > > > foxrym. > > Same way you would with any other Control. > > Don Cole Sorry for this dumb question but setHandler(RichID, w32HChange, routine_id("rich_ctrl") doe not work for me. Only MleText return w32HEvent. foxrym.
4. Re: How do i get onChange event from RichEdit?
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 19, 2006
- 946 views
- Last edited Mar 20, 2006
Thomas Julin wrote: > > > How do i get onChange event from RichEdit? It appears that you have to send a message to the control first to begin receiving Chnage messages from it. I'm not at my normal computer at the moment so I can't look up the values you need until later today, but it should look like ... VOID = sendMessage(myRichEdit, EM_SETEVENTMASK, 0, ENM_CHANGE) I need to lookup the values for EM_SETEVENTMASK and ENM_CHANGE. This will be fixed up for future releases of the Win32lib library such that its done automatically for all rich edit controls. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell
5. Re: How do i get onChange event from RichEdit?
- Posted by Thomas Julin <foxrym at yahoo.com> Mar 19, 2006
- 931 views
- Last edited Mar 20, 2006
Derek Parnell wrote: > > Thomas Julin wrote: > > > > > > How do i get onChange event from RichEdit? > > It appears that you have to send a message to the control first to begin > receiving > Chnage messages from it. I'm not at my normal computer at the moment so I > can't > look up the values you need until later today, but it should look like ... > > VOID = sendMessage(myRichEdit, EM_SETEVENTMASK, 0, ENM_CHANGE) > > I need to lookup the values for EM_SETEVENTMASK and ENM_CHANGE. WM_USER = #0400, EM_SETEVENTMASK = (WM_USER + 69), ENM_CHANGE = #00000001 Thank you for your reply. It does not work for mee.
6. Re: How do i get onChange event from RichEdit?
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 20, 2006
- 944 views
Thomas Julin wrote: > > Derek Parnell wrote: > > > > Thomas Julin wrote: > > > > > > > > > How do i get onChange event from RichEdit? > > > > It appears that you have to send a message to the control first to begin > > receiving > > Chnage messages from it. I'm not at my normal computer at the moment so I > > can't > > look up the values you need until later today, but it should look like ... > > > > VOID = sendMessage(myRichEdit, EM_SETEVENTMASK, 0, ENM_CHANGE) > > > > I need to lookup the values for EM_SETEVENTMASK and ENM_CHANGE. > > WM_USER = #0400, > EM_SETEVENTMASK = (WM_USER + 69), > ENM_CHANGE = #00000001 > > Thank you for your reply. > It does not work for mee. Ok, I've found the fix required. You have to add two lines to win32lib.ew ... Find the line ... {EDIT,EN_CHANGE}, -- editbox notify change and add this line after it ... {COMMON_CONTROL,EN_CHANGE}, -- richedit notify change Then find the line ... {w32HChange, w32CHG_Chg}, -- editbox notify change and add this line after it ... {w32HChange, w32CHG_Chg}, -- richedit notify change This will get it working. I'll add this improvement to the library ASAP. You will still need to send the EM_SETEVENTMASK message for now too. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell
7. Re: How do i get onChange event from RichEdit?
- Posted by Thomas Julin <foxrym at yahoo.com> Mar 20, 2006
- 985 views
Derek Parnell wrote: > > Thomas Julin wrote: > > > > Derek Parnell wrote: > > > > > > Thomas Julin wrote: > > > > > > > > > > > > How do i get onChange event from RichEdit? > > > > > Ok, I've found the fix required. You have to add two lines to win32lib.ew ... > > Find the line ... > {EDIT,EN_CHANGE}, -- editbox notify change > > and add this line after it ... > > {COMMON_CONTROL,EN_CHANGE}, -- richedit notify change > > Then find the line ... > {w32HChange, w32CHG_Chg}, -- editbox notify change > > > and add this line after it ... > {w32HChange, w32CHG_Chg}, -- richedit notify change > > This will get it working. I'll add this improvement to the library ASAP. > > You will still need to send the EM_SETEVENTMASK message for now too. Thank you. Julin