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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu