Re: w32HChange event on RichEdit
- Posted by CChris <christian.cuvier at agriculture.gouv.fr> May 01, 2007
- 508 views
Rad wrote: > > Hi, > > How do I trap w32HChange event for a RichEdit control? > > Does this event work for RichEdit, as default _onChange() handler does not get > invoked. > > Regards, > Rad. You'll have to instruct the control to issue the EN_CHANGE notification, on which the library fires w32HChange. By default, the control doesn't send any EN_* notification.
atom flags,void flags=sendMessage(myRichId,EM_GETEVENTMASK,0,0) flags=or_bits(flags,ENM_CHANGE) void=sendMessage(myRichId,EM_SETEVENTMASK,0,flags)