IupReparent (Since 3.0)

Moves an interface element from one position in the hierarchy tree to another.

Both parent and child must be mapped or unmapped at the same time.

Parameters/Return

void IupReparent(Ihandle* child, Ihandle* parent); [in C]
iup.Reparent(child, parent: ihandle) [in Lua]

child: Identifier of the element to be moved.
parent: Identifier of the new parent.

Returns: IUP_NOERROR if successfully, IUP_ERROR if failed.

Notes

This function is faster and easier than doing the sequence unmap, detach, attach and map.

The elements are NOT immediately repositioned. Call IupRefresh for the container (or any other element in the dialog) to update the dialog layout.

See Also

IupAppend, IupInsert, IupDetach, IupMap, IupUnmap, IupRefresh