beautypg.com

Functions and methods 3 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 135

background image

C H A P T E R 3

Views

Summary of Views

3-51

Functions and Methods

3

Getting References to Views

view

:ChildViewFrames()

view

:Parent()

GetRoot()
GetView(

symbol

)

Displaying, Hiding, and Redrawing Views

view

:Open()

view

:Close()

view

:Toggle()

view

:Show()

view

:Hide()

view

:Dirty()

RefreshViews()
SetValue(

view

,

slotSymbol

,

value

)

view

:SyncView()

viewToMove

:MoveBehind(

view

)

Dynamically Adding Views

AddStepView(

parentView

,

childTemplate

)

RemoveStepView(

parentView

,

childView

)

AddView(

parentView

,

childTemplate

)

BuildContext(

template

)

Making Modal Views

AsyncConfirm(

confirmMessage

,

buttonList

,

fn

)

ModalConfirm(

confirmMessage

,

buttonList

)

view

:

ModalDialog()

view

:FilterDialog()

Setting the Bounds of Views

RelBounds(

left

,

top

,

width

,

height

)

SetBounds(

left

,

top

,

right

,

bottom

)

view

:GlobalBox()

view

:

GlobalOuterBox()

view

:LocalBox()

viewToMove

:MoveBehind

(

view

)

view

:DirtyBox(

boundsFrame

)

view

:GetDrawBox()

ButtonBounds(

width

)

PictBounds(

name

,

left

,

top

)

Animating Views

view

:Effect(

effect

,

offScreen

,

sound

,

methodName

,

methodParameters

)

view

:SlideEffect(

contentOffset

,

viewOffset

,

sound

,

methodName

,

methodParameters

)