Re: win32Lib - newUIObj bug?

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

Mike777 wrote:
> 
> I am using Judith's IDE.  I establish my main Windows through the IDE.  All
> other controls are built using newUIObj.
> 
> It doesn't appear to me that the id's of the defined windows are available to
> the newUIObj procedure.  When I set trace on and find myself in that
> procedure,
> when I type a ? and then enter the name of a window, I get a message saying
> that it is undefined.
> 
> In my program, when I get to the Owner portion of the newUIObj procedure at
> around line 2081 of w32forms.ew I find that none of my window variables are
> available to set the parent. The parent is therefore set to be zero, and I 
> end up with a race condition when the program executes the CreateEx function
> at around line 2400.  My line numbers may not be exact because I've peppered
> the procedure at the moment with message_boxes.
> 
> When I force the lOwner variable value to be "110" with the following code,
> the createex works just fine:
> 
> if compare(lData,"MySpecialWindow") =  0 then
>   lOwner = 110
> end if
> 
> Is it a bug that the newUIObj routine doesn't seem to be able to execute the:
> 
> lOwner = getNameId(w32trim(lData))
> 
> line and get back a valid id (it always returns zero)?
> 
> Thanks
> 
> Mike

I just ran the rebar.exw demo, and that line 2083 returns quite a few nonzero
values, as you can check by adding "?lOwner" to it..
I think I need to see some code sample of yours.

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu