1. Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Hello,
i have been away for a few months.

When i looked into the forum entries, i found that there was a discussion
about Win32lib 0.60.6 and Judith Evans IDE regarding problems with the Form
Design Window. I am using Windows XP and have the same problem.

The solution posted by Derek did not work on my PC. This has been stated by
others in the forum.

So i took a small look at the code and found out that one return value
incorrect.

The correct code should be:
    -- find the parent window
    if (id <= 0) or (ctrl_Parent[id] = 0) then 
        -- The specified control has no parent.
        -- the value below was 0, but it should be id 
        return id
    end if

    -- loop until I hit top of the tree or a 'window'-type control.
    while id and (ctrl_Type[id] != Window) and (isTopLevelWindow(id) =
w32False) do
        -- move up
        id = ctrl_Parent[ id ]
    end while
    return id
end function

After implementing this change i started the IDE and .. surprise .. it works
as it should.

I do not know if somebody else already found a solution for this, but maybe
someone could try this out and let me know if everything works well on other
pcs (and OS) as well.

Greetings,
Sascha

-- 
Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail

new topic     » topic index » view message » categorize

2. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Sascha Zindel wrote:
> 
> When i looked into the forum entries, i found that there was a discussion
> about Win32lib 0.60.6 and Judith Evans IDE regarding problems with the Form
> Design Window. I am using Windows XP and have the same problem.
> 
> The correct code should be:
>     -- find the parent window

What file is the code in? I couldn't find it in win32lib.ew.

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

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

3. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Sascha Zindel wrote:
> 
> The correct code should be:

Sascha, I found it. And it works with your change! Thank you.

It is line 3582 (function findParentWindow()) in win32lib.

> I do not know if somebody else already found a solution for this, but maybe
> someone could try this out and let me know if everything works well on other
> pcs (and OS) as well.

I'm running Windows 2000 and, now, the latest win32lib. ;)

I'll try this on my XP box as well.

Thanks Sascha!

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

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

4. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Sascha Zindel wrote:
> 
> Hello,
> i have been away for a few months.
> 
> When i looked into the forum entries, i found that there was a discussion
> about Win32lib 0.60.6 and Judith Evans IDE regarding problems with the Form
> Design Window. I am using Windows XP and have the same problem.
> 
> The solution posted by Derek did not work on my PC. This has been stated by
> others in the forum.
> 
> So i took a small look at the code and found out that one return value
> incorrect.
> 
> The correct code should be:
>     -- find the parent window
>     if (id <= 0) or (ctrl_Parent[id] = 0) then 
>         -- The specified control has no parent.
>         -- the value below was 0, but it should be id 
>         return id
>     end if
> 
>     -- loop until I hit top of the tree or a 'window'-type control.
>     while id and (ctrl_Type[id] != Window) and (isTopLevelWindow(id) =
> w32False) do
>         -- move up
>         id = ctrl_Parent[ id ]
>     end while
>     return id
> end function
> 
> After implementing this change i started the IDE and .. surprise .. it works
> as it should.
> 
> I do not know if somebody else already found a solution for this, but maybe
> someone could try this out and let me know if everything works well on other
> pcs (and OS) as well.

Sorry to disagree with you guys, but your 'fix' is not the correct one. Even
though it might repair the use of the IDE, it is not the correct way to
fix the problem.

The findParentWindow() function is working correctly. It is *meant* to
return zero if the id does not have a parent window. I suspect that the
function is not being used correctly elsewhere in the win32lib, probably
the stuff that handles focus setting.

The version in 0.60.6 had a bug; namely it did what you have now 'fixed'
it to do. That was wrong. 

-- 
Derek Parnell
Melbourne, Australia
irc://irc.sorcery.net:9000/euphoria

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

5. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Derek Parnell wrote:
> 
> Sascha Zindel wrote:
> > 
> > Hello,
> > i have been away for a few months.
> > 
> > When i looked into the forum entries, i found that there was a discussion
> > about Win32lib 0.60.6 and Judith Evans IDE regarding problems with the Form
> > Design Window. I am using Windows XP and have the same problem.
> > 
> > The solution posted by Derek did not work on my PC. This has been stated by
> > others in the forum.
> 
> Sorry to disagree with you guys, but your 'fix' is not the correct one.

It's the blind leading the blind, Derek. :D

So I should switch back to 0.60.5 until further notice?

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

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

6. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Derek,

thanx for the info. Still funny because everything else seems to work and
from a short view to 0.60.4 i got the impresson that 0 might be correct.

Since i was away for a while, i would like to know if you still update the
code of win32lib or not?

In between i take your suggestion and try to find out what exactly happens
in the focus code.

Did i miss something else? It seems as if Judith is not doing any work on
the IDE anymore....

Greetings,
Sascha

> 
> 
> posted by: Derek Parnell <ddparnell at bigpond.com>
> 
> Sascha Zindel wrote:
> > 
> > Hello,
> > i have been away for a few months.
> > 
> > When i looked into the forum entries, i found that there was a
> discussion
> > about Win32lib 0.60.6 and Judith Evans IDE regarding problems with the
> Form
> > Design Window. I am using Windows XP and have the same problem.
> > 
> > The solution posted by Derek did not work on my PC. This has been stated
> by
> > others in the forum.
> > 
> > So i took a small look at the code and found out that one return value
> > incorrect.
> > 
> > The correct code should be:
> >     -- find the parent window
> >     if (id <= 0) or (ctrl_Parent[id] = 0) then 
> >         -- The specified control has no parent.
> >         -- the value below was 0, but it should be id 
> >         return id
> >     end if
> > 
> >     -- loop until I hit top of the tree or a 'window'-type control.
> >     while id and (ctrl_Type[id] != Window) and (isTopLevelWindow(id) =
> > w32False) do
> >         -- move up
> >         id = ctrl_Parent[ id ]
> >     end while
> >     return id
> > end function
> > 
> > After implementing this change i started the IDE and .. surprise .. it
> works
> > as it should.
> > 
> > I do not know if somebody else already found a solution for this, but
> maybe
> > someone could try this out and let me know if everything works well on
> other
> > pcs (and OS) as well.
> 
> Sorry to disagree with you guys, but your 'fix' is not the correct one.
> Even
> though it might repair the use of the IDE, it is not the correct way to
> fix the problem.
> 
> The findParentWindow() function is working correctly. It is *meant* to
> return zero if the id does not have a parent window. I suspect that the
> function is not being used correctly elsewhere in the win32lib, probably
> the stuff that handles focus setting.
> 
> The version in 0.60.6 had a bug; namely it did what you have now 'fixed'
> it to do. That was wrong. 
> 
> -- 
> Derek Parnell
> Melbourne, Australia
> irc://irc.sorcery.net:9000/euphoria
> 
> 
> 
> 

-- 
Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail

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

7. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Hello again!

After Derek pointed out that the function findParentWindows works fine with=

his patch applied,
i took a closer look at the fDo..... Routines.

Since findParentWindows can return a 0 if no parentWindow is existing, all
sequence handling
should be verified to not access sequence[0].
>From what i found out, Derek already considered this in some calls, but not=

in all the
necessary ones.

The following changes need to applied to Win32Lib 0.60.6 to work properly
with Judith Evans IDE
and consider Dereks latest patch to findCurrentWindows (and hopefully not
break anything else ->
Derek, could you check this and tell me whether this is the right track to
follow?)

Modify findCurrentWindows
-------------------------
line 13579:
    -- find the parent window
    if (id <= 0) or (ctrl_Parent[id] = 0) then
        -- The specified control has no parent
        return 0
    end if
    -- loop until I hit top of the tree or a Window control.
    while id and (ctrl_Type[id] != Window) and (isTopLevelWindow(id) =
w32False) do
        -- move up
        id = ctrl_Parent[id]
    end while
    return id
end function




Modify in function fDoMouse
---------------------------
line 31247:
if (lParent != 0 and sequence(ctrl_Mousetrap[lParent])) then

Modify in function fDoSetFocus

line 31393:
if (lParentWindow != 0 and ctrl_Closed[lParentWindow] = 1) or (lParent =
!=0
and ctrl_Closed[lParent] = 1) then

Modify in function fDoKillFocus

Modify in function fDoCommand
-----------------------------
line 31655:
if (lParent != 0 and ctrl_Type[lParent] = TabItem) then

On my system this patch works fine. I did intensive tests and compared the
behaviour between 0.60.4 and 0.60.6. So far everything seems fine.

Greetings,
Sascha Zindel


>
>
> Derek,
>
> thanx for the info. Still funny because everything else seems to work and=

> >from a short view to 0.60.4 i got the impresson that 0 might be correct.=

>
> Since i was away for a while, i would like to know if you still update th=
e
> code of win32lib or not?
>
> In between i take your suggestion and try to find out what exactly happen=
s
> in the focus code.
>
> Did i miss something else? It seems as if Judith is not doing any work on=

> the IDE anymore....
>
> Greetings,
> Sascha
>
> >=20
> >=20
> > posted by: Derek Parnell <ddparnell at bigpond.com>
> >=20
> > Sascha Zindel wrote:
> > >=20
> > > Hello,
> > > i have been away for a few months.
> > >=20
> > > When i looked into the forum entries, i found that there was a
> > discussion
> > > about Win32lib 0.60.6 and Judith Evans IDE regarding problems with th=
e
> > Form
> > > Design Window. I am using Windows XP and have the same problem.
> > >=20
> > > The solution posted by Derek did not work on my PC. This has been
> stated
> > by
> > > others in the forum.
> > >=20
> > > So i took a small look at the code and found out that one return valu=
e
> > > incorrect.
> > >=20
> > > The correct code should be:
> > >     -- find the parent window
> > >     if (id <= 0) or (ctrl_Parent[id] = 0) then=20
> > >         -- The specified control has no parent.
> > >         -- the value below was 0, but it should be id
> > >         return id
> > >     end if
> > >=20
> > >     -- loop until I hit top of the tree or a 'window'-type control.
> > >     while id and (ctrl_Type[id] != Window) and (isTopLevelWindow(id=
) =
> > > w32False) do
> > >         -- move up
> > >         id = ctrl_Parent[ id ]
> > >     end while
> > >     return id
> > > end function
> > >=20
> > > After implementing this change i started the IDE and .. surprise .. i=
t
> > works
> > > as it should.
> > >=20
> > > I do not know if somebody else already found a solution for this, but=

> > maybe
> > > someone could try this out and let me know if everything works well o=
n
> > other
> > > pcs (and OS) as well.
> >=20
> > Sorry to disagree with you guys, but your 'fix' is not the correct one.=

> > Even
> > though it might repair the use of the IDE, it is not the correct way to=

> > fix the problem.
> >=20
> > The findParentWindow() function is working correctly. It is *meant* to
> > return zero if the id does not have a parent window. I suspect that the=

> > function is not being used correctly elsewhere in the win32lib, probabl=
y
> > the stuff that handles focus setting.
> >=20
> > The version in 0.60.6 had a bug; namely it did what you have now 'fixed=
'
> > it to do. That was wrong.=20
> >=20
> > --=20
> > Derek Parnell
> > Melbourne, Australia
> > irc://irc.sorcery.net:9000/euphoria
> >=20
> >=20
> >=20
> >=20

--
DSL Komplett von GMX +++ Superg=FCnstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl

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

8. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Sascha Zindel wrote:
> 
> Hello again!
> 
> After Derek pointed out that the function findParentWindows works fine with=
> 
> his patch applied,
> i took a closer look at the fDo..... Routines.

Thanks Sascha. I'll incorporate your fixes into the library.

-- 
Derek Parnell
Melbourne, Australia
irc://irc.sorcery.net:9000/euphoria

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

9. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

I've verified these changes, and I now have no issues creating
controls and clicking on the form window in the IDE.

Thanks Sascha!!

~Greg


On Thu, 10 Feb 2005 22:36:58 +0100 (MET), Sascha Zindel <s.zindel at gmx.de>
wrote:
> 
> Hello again!
> 
> After Derek pointed out that the function findParentWindows works fine with=
> 
> his patch applied,
> i took a closer look at the fDo..... Routines.
> 
> Since findParentWindows can return a 0 if no parentWindow is existing, all
> sequence handling
> should be verified to not access sequence[0].
> >From what i found out, Derek already considered this in some calls, but not=
> 
> in all the
> necessary ones.
> 
> The following changes need to applied to Win32Lib 0.60.6 to work properly
> with Judith Evans IDE
> and consider Dereks latest patch to findCurrentWindows (and hopefully not
> break anything else ->
> Derek, could you check this and tell me whether this is the right track to
> follow?)
> 
> Modify findCurrentWindows
> -------------------------
> line 13579:
>    -- find the parent window
>    if (id <= 0) or (ctrl_Parent[id] = 0) then
>        -- The specified control has no parent
>        return 0
>    end if
>    -- loop until I hit top of the tree or a Window control.
>    while id and (ctrl_Type[id] != Window) and (isTopLevelWindow(id) =
> w32False) do
>        -- move up
>        id = ctrl_Parent[id]
>    end while
>    return id
> end function
> 
> Modify in function fDoMouse
> ---------------------------
> line 31247:
> if (lParent != 0 and sequence(ctrl_Mousetrap[lParent])) then
> 
> Modify in function fDoSetFocus
> 
> line 31393:
> if (lParentWindow != 0 and ctrl_Closed[lParentWindow] = 1) or (lParent =
> !=0
> and ctrl_Closed[lParent] = 1) then
> 
> Modify in function fDoKillFocus
> 
> Modify in function fDoCommand
> -----------------------------
> line 31655:
> if (lParent != 0 and ctrl_Type[lParent] = TabItem) then
> 
> On my system this patch works fine. I did intensive tests and compared the
> behaviour between 0.60.4 and 0.60.6. So far everything seems fine.
> 
> Greetings,
> Sascha Zindel
> 
> >=20
> >=20
> > Derek,
> >=20
> > thanx for the info. Still funny because everything else seems to work and=
> 
> > >from a short view to 0.60.4 i got the impresson that 0 might be correct.=
> 
> >=20
> > Since i was away for a while, i would like to know if you still update th=
> e
> > code of win32lib or not?
> >=20
> > In between i take your suggestion and try to find out what exactly happen=
> s
> > in the focus code.
> >=20
> > Did i miss something else? It seems as if Judith is not doing any work on=
> 
> > the IDE anymore....
> >=20
> > Greetings,
> > Sascha
> >=20
> > >=20
> > >=20
> > > posted by: Derek Parnell <ddparnell at bigpond.com>
> > >=20
> > > Sascha Zindel wrote:
> > > >=20
> > > > Hello,
> > > > i have been away for a few months.
> > > >=20
> > > > When i looked into the forum entries, i found that there was a
> > > discussion
> > > > about Win32lib 0.60.6 and Judith Evans IDE regarding problems with th=
> e
> > > Form
> > > > Design Window. I am using Windows XP and have the same problem.
> > > >=20
> > > > The solution posted by Derek did not work on my PC. This has been
> > stated
> > > by
> > > > others in the forum.
> > > >=20
> > > > So i took a small look at the code and found out that one return valu=
> e
> > > > incorrect.
> > > >=20
> > > > The correct code should be:
> > > >     -- find the parent window
> > > >     if (id <= 0) or (ctrl_Parent[id] = 0) then=20
> > > >         -- The specified control has no parent.
> > > >         -- the value below was 0, but it should be id
> > > >         return id
> > > >     end if
<snip>

> 
> 
>

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

10. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Sascha Zindel wrote:
> 
> Hello again!
> 
> After Derek pointed out that the function findParentWindows works fine with=
> 
> his patch applied,
> i took a closer look at the fDo..... Routines.
> 
> Since findParentWindows can return a 0 if no parentWindow is existing, all
> sequence handling
> should be verified to not access sequence[0].
> From what i found out, Derek already considered this in some calls, but not
> in all the necessary ones.
> 
> The following changes need to applied to Win32Lib 0.60.6 to work properly
> with Judith Evans IDE
> and consider Dereks latest patch to findCurrentWindows (and hopefully not
> break anything else ->
> Derek, could you check this and tell me whether this is the right track to
> follow?)
> 
> Modify findCurrentWindows
> -------------------------
> line 13579:
>     -- find the parent window
>     if (id <= 0) or (ctrl_Parent[id] = 0) then
>         -- The specified control has no parent
>         return 0
>     end if
>     -- loop until I hit top of the tree or a Window control.
>     while id and (ctrl_Type[id] != Window) and (isTopLevelWindow(id) =
> w32False) do
>         -- move up
>         id = ctrl_Parent[id]
>     end while
>     return id
> end function
> 
> 
> Modify in function fDoMouse
> ---------------------------
> line 31247:
> if (lParent != 0 and sequence(ctrl_Mousetrap[lParent])) then
> 
> Modify in function fDoSetFocus
> 
> line 31393:
> if (lParentWindow != 0 and ctrl_Closed[lParentWindow] = 1) or (lParent =
> !=0
> and ctrl_Closed[lParent] = 1) then
> 
> Modify in function fDoKillFocus
> 
> Modify in function fDoCommand
> -----------------------------
> line 31655:
> if (lParent != 0 and ctrl_Type[lParent] = TabItem) then
> 
> On my system this patch works fine. I did intensive tests and compared the
> behaviour between 0.60.4 and 0.60.6. So far everything seems fine.
> 
> Greetings,
> Sascha Zindel
> 
Sascha,

I tried to make the above changes, and now the IDE will not run at all, I get
the following error.  I have listed the first few lines of ex.err below:

C:\EuPrograms\IDE\IDE18-22\win32lib.ew:31387 in function fDoSetFocus() 
subscript value 0 is out of bounds, reading from a sequence of length 18 
    id = 3
    hWnd = 4850276
    iMsg = 7
    wParam = 0
    lParam = 0
    pReturn = -2761
    lRC = {-9987}
    lProp = <no value>
    lParent = 0
    lParentWindow = 0
    lTempId = <no value>

Here is the code around line 31387 from Win32Lib.ew (v0.60.6)

----------------------------------------------------
function fDoSetFocus(integer id, atom hWnd, atom iMsg, atom wParam, atom lParam,
atom pReturn)
----------------------------------------------------
    sequence lRC
    sequence lProp

    integer lParent
    integer lParentWindow
    integer lTempId


    lRC = {kSubclassedMsg}
    lParent = findParent(id)

    lParentWindow = findParentWindow(id)

    -- Don't bother setting focus to a window that's going down.
    if ctrl_Destroyed[id] != 0 or ctrl_Destroyed[lParentWindow] != 0 then
        return lRC
    end if

    -- Check for special case of a control in a closed window that
    -- gets focus again!
if (lParentWindow != 0 and ctrl_Closed[lParentWindow] = 1) or (lParent !=0
    and ctrl_Closed[lParent] = 1) then
        if focus_current > 0 and focus_current != id then
            -- Reset focus on the last control that had an explicit set focus.
            setFocus(focus_current)
            return lRC
        end if
    end if


Did I miss something here?

Thanks.

Ferlin Scarborough

Learn To Program Games in Free Courses At
http://www.gameuniv.net

My Euphoria Home Page
http://mywebpage.netscape.com/shadetreesoft

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

11. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Hi Ferlin,

for some reason my mail client removed a line from my sent mail.
In function fDoSetFocus you should also change line 31387 as follows:
if ctrl_Destroyed[id] != 0 or (lParentWindow != 0 and
ctrl_Destroyed[lParentWindow] != 0) then

After that your problem is solved.

Greetings,
Sascha Zindel


>
>
> posted by: Ferlin Scarborough <ferlin1 at bellsouth.net>
>
> Sascha Zindel wrote:
> >=20
> > Hello again!
> >=20
> > After Derek pointed out that the function findParentWindows works fine
> with=
> >=20
> > his patch applied,
> > i took a closer look at the fDo..... Routines.
> >=20
> > Since findParentWindows can return a 0 if no parentWindow is existing,
> all
> > sequence handling
> > should be verified to not access sequence[0].
> > From what i found out, Derek already considered this in some calls, but=

> not
> > in all the necessary ones.
> >=20
> > The following changes need to applied to Win32Lib 0.60.6 to work
> properly
> > with Judith Evans IDE
> > and consider Dereks latest patch to findCurrentWindows (and hopefully
> not
> > break anything else ->
> > Derek, could you check this and tell me whether this is the right track=

> to
> > follow?)
> >=20
> > Modify findCurrentWindows
> > -------------------------
> > line 13579:
> >     -- find the parent window
> >     if (id <= 0) or (ctrl_Parent[id] = 0) then
> >         -- The specified control has no parent
> >         return 0
> >     end if
> >     -- loop until I hit top of the tree or a Window control.
> >     while id and (ctrl_Type[id] != Window) and (isTopLevelWindow(id) =
=
> > w32False) do
> >         -- move up
> >         id = ctrl_Parent[id]
> >     end while
> >     return id
> > end function
> >=20
> >=20
> > Modify in function fDoMouse
> > ---------------------------
> > line 31247:
> > if (lParent != 0 and sequence(ctrl_Mousetrap[lParent])) then
> >=20
> > Modify in function fDoSetFocus
> >=20
> > line 31393:
> > if (lParentWindow != 0 and ctrl_Closed[lParentWindow] = 1) or (lPar=
ent =
> > !=0
> > and ctrl_Closed[lParent] = 1) then
> >=20
> > Modify in function fDoKillFocus
> >=20
> > Modify in function fDoCommand
> > -----------------------------
> > line 31655:
> > if (lParent != 0 and ctrl_Type[lParent] = TabItem) then
> >=20
> > On my system this patch works fine. I did intensive tests and compared
> the
> > behaviour between 0.60.4 and 0.60.6. So far everything seems fine.
> >=20
> > Greetings,
> > Sascha Zindel
> >=20
> Sascha,
>
> I tried to make the above changes, and now the IDE will not run at all, I=

> get
> the following error.  I have listed the first few lines of ex.err below:
>
> C:\EuPrograms\IDE\IDE18-22\win32lib.ew:31387 in function fDoSetFocus()=

> subscript value 0 is out of bounds, reading from a sequence of length 18=

>     id = 3
>     hWnd = 4850276
>     iMsg = 7
>     wParam = 0
>     lParam = 0
>     pReturn = -2761
>     lRC = {-9987}
>     lProp = <no value>
>     lParent = 0
>     lParentWindow = 0
>     lTempId = <no value>
>
> Here is the code around line 31387 from Win32Lib.ew (v0.60.6)
>
> }}}
<eucode>
>     sequence lRC
>     sequence lProp
>=20
>     integer lParent
>     integer lParentWindow
>     integer lTempId
>=20
>=20
>     lRC = {kSubclassedMsg}
>     lParent = findParent(id)
>=20
>     lParentWindow = findParentWindow(id)
>=20
>     -- Don't bother setting focus to a window that's going down.
>     if ctrl_Destroyed[id] != 0 or ctrl_Destroyed[lParentWindow] != 0 =
then
>         return lRC
>     end if
>=20
>     -- Check for special case of a control in a closed window that
>     -- gets focus again!
>     if (lParentWindow != 0 and ctrl_Closed[lParentWindow] = 1) or (lP=
arent
> !=0 and ctrl_Closed[lParent] = 1) then
>         if focus_current > 0 and focus_current != id then
>             -- Reset focus on the last control that had an explicit set
> focus.
>             setFocus(focus_current)
>             return lRC
>         end if
>     end if
> </eucode>
{{{

>
> Did I miss something here?
>
> Thanks.
>
> Ferlin Scarborough
>
> Learn To Program Games in Free Courses At
> http://www.gameuniv.net
>
> My Euphoria Home Page
> http://mywebpage.netscape.com/shadetreesoft
>
>
>
>

--
DSL Komplett von GMX +++ Superg=FCnstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl

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

12. Re: Win32lib 0.60.6 and Judith Evans IDE (how to make it work)

Sascha Zindel wrote:
> 
> Hi Ferlin,
> 
> for some reason my mail client removed a line from my sent mail.
> In function fDoSetFocus you should also change line 31387 as follows:
> if ctrl_Destroyed[id] != 0 or (lParentWindow != 0 and
> ctrl_Destroyed[lParentWindow] != 0) then
> 
> After that your problem is solved.
> 
> Greetings,
> Sascha Zindel
> 
Sascha,

Thanks for the quick reply, since it is 3:17AM here now, I'll try it when I
get to work.

Later.

Ferlin Scarborough

Learn To Program Games in Free Courses At
http://www.gameuniv.net

My Euphoria Home Page
http://mywebpage.netscape.com/shadetreesoft

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

Search



Quick Links

User menu

Not signed in.

Misc Menu