User's Guide

Opening multiple windows

So far you have been able to open only one Runner Data window at a time. There will be times when you want to open multiple windows to allow the user to interact with multiple objects at a time. This can be done only from a script.

Switch to the Script Editor for RoadRaceView and change the selectedRunner: script as follows:

selectedRunner: aRunner
    "Set the Runner Data View to be the current runner
     and open a new window."
    | currentRunner |
    currentRunner := aRunner.
    RunnerDataView new
        valueOfAttributeNamed: #runner
        put: currentRunner;
        openWidget.

Save your part and test it. You should be able to interact with the Road Race window while the Runner Data window is open. You should also be able to open multiple Runner Data windows on different runners and be able to interact with each one, or even open multiple Runner Data windows on an individual runner.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]