Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent and child window cannot share the same 'READ CYCL
Message
 
To
06/11/1998 06:19:26
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00155139
Message ID:
00155170
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform