win32Lib - newUIObj bug?
- Posted by Mike777 <anon4321 at g?ail?com> May 06, 2008
- 651 views
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