1. Win32Lib 0.60.6 Problem Note
- Posted by cklester <cklester at yahoo.com>
Oct 21, 2004
-
Last edited Oct 22, 2004
Okay, I found the message by Matt Lewis that explained the same problem I
was having after applying a patch given by Derek.
It's in this thread:
http://www.listfilter.com/cgi-bin/esearch.exu?thread=1&fromMonth=8&fromYear=9&toMonth=A&toYear=9&keywords=%22Win32Lib+v0.60.6+available%22
See Matt's message of 2004 Sep 21, that starts...
"Derek Parnell wrote:
>
> Oooops! I added a last minute change and forgot to retest the IDE. I've
> found the error in my code. You need to change findParentWindow() in
> the win32lib.ew file. It should look like this ...
>
Ok, I made this change, but now I'm getting errors in fDoSetFocus."
Last time I used win32lib, I was getting errors in fDoSetFocus. Has that
been fixed and I missed it?
-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/
2. Re: Win32Lib 0.60.6 Problem Note
cklester wrote:
>
>
> Ok, I made this change, but now I'm getting errors in fDoSetFocus."
>
> Last time I used win32lib, I was getting errors in fDoSetFocus. Has that
> been fixed and I missed it?
Did you make the changes? I found 3 lines that needed changing: the if
statements in fDoSetFocus, fDoKillFocus and fDoMouse. You need to make
sure to check that lParentWindow != 0. I guess I didn't give the
updated lines for all three, so I put them here:
eucode>
if ctrl_Destroyed[id] != 0 or ctrl_Destroyed[lParentWindow] != 0 then
...changes to...
if (ctrl_Closed[lParentWindow] = 1) or (lParent !=0 and ctrl_Closed[lParent] =
1)
then
</eucode>
{{{
fDoKillFocus:
if ctrl_Destroyed[id] = 0 and ctrl_Closed[ lParentWindow ] != 1 then
...changes to...
if ctrl_Destroyed[id] = 0 and (lParentWindow !=0 and ctrl_Closed[ lParentWindow
] != 1) then
fDoMouse:
if sequence(ctrl_Mousetrap[lParent]) then
...changes to...
if sequence(lParent != 0 and ctrl_Mousetrap[lParent]) then
Matt Lewis
3. Re: Win32Lib 0.60.6 Problem Note
- Posted by cklester <cklester at yahoo.com>
Oct 22, 2004
-
Last edited Oct 23, 2004
Matt Lewis wrote:
> cklester wrote:
> > Last time I used win32lib, I was getting errors in fDoSetFocus. Has that
> > been fixed and I missed it?
> Did you make the changes?
No, but only because you said "Adding (lParent and XXX ) seems to make
it work, although I didn't really look at the rest of the code to see
if this broke whatever was going on in there."
I was waiting for an official patch. :)
> I found 3 lines that needed changing:
Okay, I made those changes and will see how it goes this weekend.
Thanks! :)
-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/