The Created Window Affects the Calling Window |
To let the created window affect the calling window:
Example: Suppose the calling Bookings window opens the created Days window. For the Days window, define a user-defined property UDPBookings of type: Bookings.
<created window>( Self() ).Window.Create() This method call: •Opens the window that is to be created. •Sends the calling window as value to the user-defined property of the created window, within the Self() keyword. You can use the Object Activator to construct this method call. For a Travel Agency example that explains how to do this, see: Actions Example 11. Example: In the Bookings and Days example, the corresponding method call is: Days( Self() ).Window.Create()
Example: To set the background color of the Bookings window to red, insert a button in the Days window, and set the Action property to: UDPBookings.background( red ) |