The Created Window Affects the Calling Window |
To let the created window affect the calling window:
Example 1 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()
•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 action statement. For a Travel Agency example that explains how to do this, see: Actions Example 11. In the Bookings and Days example, the corresponding action statement is: Days( Self() ).Window.Create()
Example 2 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 )
See Also |