>I write a small code snippet which defines two windows: WIN1 and WIN2.WIN1 is the parent of WIN2 and they share the same 'READ CYCLE' command.When this code snippet is running,I find that I cannot use mouse to click any oject on WIN1 and WIN2 except one pushbutton on WIN1.
>I wonder whether the child window cannot share the same 'READ CYCLE' command with the parent window.If this is the case,how can I make the parent window and the child window accept events concurrently?
Hi Daniel,
If the screens are using a foundation read, the answer is that you can't have two truly modeless windows running at the same time. What happens is that when the value of WONTOP() changes, the valid clause on the foundation read fires, and should clear the read of the previous window, causing it to exit (but not be cleared), and re-starts the other visible window's programming, beginning with the setup code. This is pseudo event driven. The only exception to this is the cause where the child window is modal. This will cause the parent window's programming to resume at the line immediately following the call to the modal window.
George
Ubi caritas et amor, deus ibi est