Name
Pageview.Append -- add new page to pageview
Synopsis
moai.DoMethod(id, "Append", obj[, active])
Function
This method can be used to add a new page to a pageview. The new page specified by obj must be a detached group object. This detached group object will then be added as the pageview's last page. After this method returns the specified group object will change its state from detached to attached. That is why you must no longer use functions that expect a detached object with this object now.

Detached MOAI objects can be created either by calling the moai.CreateObject() function or by explicitly detaching them from their parent by using the Pageview.Remove method.

On AmigaOS and compatibles this feature requires at least MUI 4.0.

Inputs
id
id of the pageview object
obj
id of the group object to add as a new page
active
optional: set this to True to activate the page after adding it

Show TOC