IupDetach

IUP - Portable User Interface

IupDetach

Disassociates an interface element from its parent.

Parameters/Return

void IupDetach(Ihandle *child); [in C]
iup.Detach(child: ihandle) [in Lua]
or child:detach() [in Lua]

child: Identifier of the interface element to be detached.

Notes

This function does not destroy the interface element, just remove it from the child list of its parent. If you remove a control from an already mapped dialog you must explicitly call IupDestroy for that control.

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

See Also

IupAppend, IupDestroy, IupRefresh.