Creating a User Proto
1. Select the user proto in the list of user protos (for example, mySlider
).
2. Select the user proto icon and drag out a template in the layout window (see FIGURE A.18). You must reselect the user proto icon each time you want to drag out another proto template.
Notice that it does not matter what size you attempt to make the proto template. It will draw out with the screen location and size specified in the original proto (see FIGURE A.18). The proto template is created with only one slot, the _proto
slot. If you want to change the size of the template, add a viewBounds
slot to the newly created template.
FIGURE A.18 : Dragging out a![]()
mySlider
template.
viewBounds
slot in your proto, then NTK will create your template with both a _proto
slot and a viewBounds
slot.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996