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
)
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна