background image
C H A P T E R 3
Views
3-30
About Views
View Compatibility
3
The following new functionality has been added for the 2.0 release of Newton
System Software. See the Newton Programmer's Reference for complete
descriptions on each new function and method.
New Drag and Drop API
3
A drag and drop API has been added. This API now lets users drag a view, or part
of a view, and drop it into another view. See "Dragging and Dropping with Views"
(page 3-40) for details.
New Functions and Methods
3
The following functions and methods have been added.
AsyncConfirm
creates and displays a slip that the user must dismiss before
continuing.
ButtonToggleScript
lets the application perform special handling when its
icon is tapped in the Extras Drawer.
DirtyBox
marks a portion of a view (or views) as needing redrawing.
GetDrawBox
returns the bounds of the area on the screen that needs redrawing.
GlobalOuterBox
returns the rectangle, in global coordinates, of the specified
view, including any frame that is drawn around the view.
ModalConfirm
creates and displays a slip.
MoveBehind
moves a view behind another view, redrawing the screen as
appropriate.
StdButtonWidth
returns the size that a button needs to be in order to fit some
specified text.
New Messages
3
The following messages have been added.
ReorientToScreen
is sent to each child of the root view when the screen
orientation is changed.
ViewPostQuitScript
is sent to a view following the
ViewQuitScript
message and after all of the view's child views have been destroyed.
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна