1. Win32Lib 0.60.6 Problem Note

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/

new topic     » topic index » view message » categorize

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32Lib 0.60.6 Problem Note

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/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu