Re: w32HChange event on RichEdit

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

Rad wrote:
> 
> CChris wrote:
> > 
> > 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.
> > 
> > }}}
<eucode>
> > atom flags,void
> > flags=sendMessage(myRichId,EM_GETEVENTMASK,0,0)
> > flags=or_bits(flags,ENM_CHANGE)
> > void=sendMessage(myRichId,EM_SETEVENTMASK,0,flags)
> > </eucode>
{{{

> 
> Hi CChris,
> 
> I am getting "has not been declared" error for EM_GETEVENTMASK and
> EM_SETEVENTMASK.
> 
> I checked in win32lib.ew, where EN_CHANGE is declared, but above 2 variables
> are not present.
> I am using win32lib includes from IDEwin32lib 0.60.6. (Judith's IDE) Is this
> the latest one? 
> What are the values for EM_GETEVENTMASK and EM_SETEVENTMASK which I can
> declare
> in win32lib.ew?
> 
> Regards,
> Rad.

ENM_CHANGE is 1 (Google is your friend). I think the ENM constants are the
same as the corresponding EN_ ones, but I didn't check.
You'll have to define constants:
EM_GETEVENTMASK = #0459
EM_SETEVENTMASK = #0469

v0.60.6 is the latest version, and Judith's is an adaptation to IDE, 
specially for Win98 users. There may be a newer release some weeks ahead.

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu