RE: RichEdit and findText

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

Brian Broker wrote:
> 
> Jonas Temple wrote:
> > 
> > Pete wrote:
> > >    Tried again after applying patch (I think it was already applied, but 
> > > did it again..) still fails - worth a try tho.
> > > 
> > >  Pete
> > > 
> > Pete,
> > 
> > I have Win32Lib v0.60.6 and this works for me.  I reworked your program
> > and this works on this WinXP Pro machine:
> > 
> <snip>
> 
> That still didn't work for me but it does work when I cut out support 
> for RichEdit 5.0.  You can check to see what version you are actually 
> using by checking the value of WC_RICHEDIT.  Anyway, when I edited 
> w32dll.ew as follows, it worked fine:
> }}}
<eucode>
> global constant
>     riched32    = 
>
> registerw32Library({"riched20.dll","riched32.dll"}),--{"Msftedit.dll","riched20.dll","riched32.dll"}),
> 
>    -- Rich Edit control
>     WC_RICHEDIT10       = "RICHEDIT",
>     WC_RICHEDIT20       = "RichEdit20A"--,
>     --WC_RICHEDIT50       = "RICHEDIT50W"
> global sequence WC_RICHEDIT
> 
> vw32Libraries[riched32][1] = linkDLL(vw32Libraries[riched32][2])
> if vw32Libraries[riched32][1][1] = 1 then
>     WC_RICHEDIT = WC_RICHEDIT20--WC_RICHEDIT = WC_RICHEDIT50
>     
> elsif vw32Libraries[riched32][1][1] = 2 then
>     WC_RICHEDIT = WC_RICHEDIT10--WC_RICHEDIT = WC_RICHEDIT20
> 
> else
>     WC_RICHEDIT = WC_RICHEDIT10
> end if
> </eucode>
{{{

> Maybe the lib shouldn't try supporting RichEdit 5.0 until we need some 
> particular feature of 5.0.

I'm starting to suspect you are right. It looks as if the new RichEdit
stores text as wide-characters (Unicode utf-16 encoding). I'm still
looking into it though. I can now read Rich text wide characters but 
I can't seem to get the Find part for them working.

-- 
Derek Parnell
Melbourne, Australia

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

Search



Quick Links

User menu

Not signed in.

Misc Menu