Permanent Window Interaction

Previous Next

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 action statements.

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:

1.        The created window affects the calling window.

2.        The calling window affects the created window.

3.        Both windows affect each other; a two-way window interaction is set up.

Example

Suppose, in a travel agency application, a Bookings window contains a button. If the user presses the button, a Days window is created and opened on the screen. Bookings is the calling window and Days is the created window:

DE_clip0029

After creation, window interaction between Booking and Days can take one of three forms:

1.        Days can affect Bookings.

2.        Bookings can affect Days.

3.        Both windows can affect each other.

DE_clip0030

To set up a permanent window interaction, select one of the 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