Re: w32HChange event on RichEdit

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

CChris wrote:
> 
> 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

Hi CChris,

In win32lib.ew, EN_CHANGE has been declared as #300, and I declared -

ENM_CHANGE = 1
EM_GETEVENTMASK = #0459
EM_SETEVENTMASK = #0469



I used EM_GETEVENTMASK and EM_SETEVENTMASK as follows:

In General area of window:

atom flags, void

flags = sendMessage(RichEdit41, EM_GETEVENTMASK, 0, 0)
flags = or_bits(flags, ENM_CHANGE) -- also tried EN_CHANGE
void = sendMessage(RichEdit41, EM_SETEVENTMASK, 0, flags)


In w32HChange area for RichEdit41:

procedure RichEdit41_onChange (integer self, integer event, sequence
params)--params is ()
	VOID = message_box("RichEdit Changed", "onChange", MB_ICONINFORMATION)
end procedure
setHandler( RichEdit41, w32HChange, routine_id("RichEdit41_onChange"))


But still I can not get the display from w32HChange event for RichEdit41.
Where am I going wrong?

Regards,
Rad.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu