Disabled controls in later windows

I have not yet switched from REALbasic to XoJo so I am not sure whether it is kosher to pose a problem with it in this forum. I’m using MacOS to write programs similar to many I have written successfully in the past. Everything works fine but as I add more windows to a program, many of the controls no longer function in them (e.g., push buttons used to start routines in that window, or timers that are supposed to do the same thing).

I even copied an earlier window, in which the controls worked just fine, and put the duplicate copy later in the program. The push button didn’t work when it got to the later window. I also tried overlaying a label field with a canvas that should be able to initiate program code with a Mouse Down = “return true” & a Mouse Up = run the code. Again, it worked perfectly in the earlier window but was disabled in the later one. Any thoughts? In reading this forum, I do see that there have been some problems with setting the focus and that there have been changes in how READbasic and Xojo treat focus matters.

We ain’t much kosher here. If you use Realbasic then this is fine for asking questions.

How many windows do you have? What does the debugger say about your not working code? “Disabled” is a bit vague. Have you tried to reproduce your problem with a simpler example?

Thank you. Problem solved reproducing my problem with a simpler example. Problem was with an intervening window that still had a process running even after the 'nextwindow.show self.close" commands. It displayed the newwindow (with its “broken” begin button) but the still-running routine was still hanging on in the background from the previous window.