Re: Bug in Win32Lib 0.70.4
- Posted by CChris Mar 15, 2009
- 1017 views
Can you post the code where this happens?
Hi Chris,
It fails for me using the test code provided by Pete in the first post of this thread. I have downloaded a fresh copy of Win32lib v0.70.4a and it fails using that. I checked for differences between the vanilla v0.70.4a and the one I had and the only change is to w32replaceItem() which was provided to me by you
E.g.
-- Fix as per CChris to cope with pNew containing pOld -- http://openeuphoria.org/EUforum/index.cgi?module=forum&action=flat&id=103817 -- This fix hopefully will be included in a future release of win32lib -- lFrom += lLenNew lFrom = lPos + lLenNew
Or send it over to oedoc hat free doubt fr ?
I was slow to realise what you were asking for here. Now I've typed this I realise that you've provided a hidden email address to avoid robot spam list generators. Changing hat for at and doubt for dot. It's a new one on me. If you haven't replied here in the next few days I'll try your email address.
Cheers, Mark
Bug squashed, in getRect(): Popups were not treated as Menus, while they should have. 1/ line 14615 reads:
ctltype=find(ctrl_Family[id],{MENU,MENUITEM})
Replace with
ctltype=find(ctrl_Family[id],{MENU,MENUITEM,POPUP})
2/ line 14681 has condition
if ctltype=1
Replace it with
ctrl_Family[id]!=MENUITEM
CChris