The Calling Window Affects the Created Window

Previous Next

To let the calling window affect the created window:

1.From the Windows Designer catalog, open the calling window.
2.Open the Object Activator.
3.In the object pane of the Object Activator, select the window object at the top.
4.Click the Properties tab page.
5.Click the New button.
6.Define a user-defined property of the to be created window type. You are advised to use a consistent naming convention.

 

Example 1

Suppose the calling Bookings window opens the created Days window. For the Bookings window, define a user-defined property UDPDays of type: Days.

1.From the Windows Designer catalog, open the calling window. In the example, this is the Bookings window.
2.Insert a button, and set the Action property to:

user-defined-propertycreated-window().Window.Create() )

 

This action statement:

Fills the user-defined property with the created window.

Implicitly opens this window.

In the Bookings and Days example, the corresponding action statement is:

UDPDays( Days().Window.Create() )

 

3.From now on, the calling window can affect the created window.

Example 2

To set the background color of the Days window to red, insert a button in the Bookings window, and set the Action property to:

UDPDays.background( red )

 

See Also

Permanent Window Interaction