C H A P T E R 3
Typically, modal views are used for slips. For example, if the user was going to
delete some data in your application, you might want to display a slip asking them
to confirm or cancel the operation. The slip would prevent them from going to
another operation until they provide an answer.
to create and display a slip that the user must dismiss before
continuing. The slip is created at a deferred time, so the call to
returns immediately, allowing the currently executing NewtonScript code to finish.
You can also use
but this method causes a separate OS task to be
created and doesn't return until after the slip is closed. It is less efficient and takes
more system overhead.
Once you've created a modal view, you can use the
to open it. Using
is the preferred method as it
returns immediately. As with
causes a separate
OS task to be created.
Finding the Bounds of Views
The following functions and view methods calculate and return a
-- calculates the right and bottom values of a view and returns a
--returns a frame when the left, top, right, and bottom coordinates
--returns the rectangle, in coordinates, of a specified view.
--returns the rectangle, in coordinates, of a specified view
including any frame that is drawn around a view.
--returns a frame containing the view bounds relative to the view itself.
-- moves a view behind another view.
-- marks a portion of a view as needing redrawing.
-- returns the bounds of an area on the screen that needs redrawing.
--returns a frame when supplied with the width of a button to
be placed in the status bar.
-- finds the width and height of a picture and returns the proper