Pageview.Append -- add new page to pageview
moai.DoMethod(id, "Append", obj[, active])
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.

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

Show TOC