Other View Settings

viewEffect

FIGURE 5.9 : The viewEffect slot with the popup menu showing.


A viewEffect slot (see FIGURE 5.9) in a template causes a visual effect when the view associated with the template is opened or closed. These visual effects are most similar to the transitions (or wipes) used in some movies to change from one scene to another.

For example, you can have a view that opens like the iris of a camera. When that view is closed, it uses the visual effect in reverse, like the closing of the iris of a camera. Here is the list of predefined visual effects:

You might want to use viewEffect as a slot within your application base view, so that your application will have a particular visual effect whenever it is opened or closed. You can also add viewEffect slots to other views that you open and close.


Note:Other effects are possible from within NewtonScript. In particular, SlideEffect is commonly used for scrolling.


An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.

Last modified: 1 DEC 1996