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

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

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu