Name
Pageview.Prepend -- prepend new page to pageview
Synopsis
moai.DoMethod(id, "Prepend", obj[, active])
Function
This method can be used to prepend 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 first 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 the first page
active
optional: set this to True to activate the page after adding it

Show TOC