Apple 2 Network Router User Manual


 
CHAPTER 2
Container Views
2-34 How Views Work
Figure 2-26 Dragging a view’s drag handle moves the view
Changing a View’s Size 2
Your application determines the size of its views. It should base its view sizes
on the screen size of the Newton device on which it is running, since Newton
screens can come in a wide range of sizes. For example, a container view that
fills the screen on an Apple MessagePad 120 (which measures 240 × 320 pixels)
will not fill the screen on a MessagePad 100 (which measures 240 × 336 pixels).
The same image would be too tall to fit on a screen of a MessagePad 120 that
a user has rotated to the wide orientation (320 × 240 pixels). An application
can dynamically determine the screen size, and based on that information
can calculate appropriate view sizes. An application may also need to adjust
view layouts according to the aspect ratio of the screen. Figure 2-27 shows
how the built-in Calculator adjusts its size and layout when a user rotates
the display.
D
rag handle
1. User drags the keyboard view’s drag handle up
2. Keyboard view moves up