Re: w32HChange event on RichEdit

new topic     » goto parent     » topic index » view thread      » older message » newer message

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)


new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu