IupGetChildPos (since 3.0)

Returns the position of a child of the given control.


int IupGetChildPos(Ihandle* ih, Ihandle* child); [in C]
iup.GetChildPos(ih, child: ihandle) ->  pos: number [in Lua]
ih: identifier of the interface element.

Returns: the position of the desire child starting at 0, or -1 if child not found.


This function will return the children of the control in the exact same order in which they were assigned.

See Also

IupGetChild, IupGetChildCount, IupGetNextChild, IupGetBrother, IupGetParent