Permanent Window Interaction |
Windows can interact with each other. You can set up a permanent interaction between two windows by creating one or two user-defined properties of Window type, and then writing the appropriate method calls. Assume, one window contains a button that opens another window by performing a Window.Create() call. The window that contains the button is the calling window, and the window that is opened is the created window. After creation, the calling window and the created window can interact in three ways:
Example Suppose, in the Travel Agency, the Bookings window opens the Days window. After creation:
Figure 3-17, Interaction between the Bookings and the Days window. To set up a permanent window interaction, select one of the related topics. The relevant method calls for each of these three scenarios in the Bookings and Days example are described in Help topic: Example: Permanent Window Interaction Between Bookings and Days. Related Topics The Created Window Affects the Calling Window The Calling Window Affects the Created Window Both Windows Affect Each Other Clearing the Reference To a Closed Window Example: Permanent Window Interaction between Bookings and Days |