Converts a (x,y) coordinate in an item position.
int IupConvertXYToPos(Ihandle *ih, int x, int y); [in C] iup.ConvertXYToPos(ih: ihandle, x, y: number) -> (ret: number) [in Lua]
ih: Identifier of the element.
x: X coordinate of the left corner of the interface element.
y: Y coordinate of the upper part of the interface element.
Returns: the position starting at 0 (except for IupList that starts at 1). If fails returns -1.
It can be used for IupText (returns a position in the string), IupList (returns an item) or IupTree (returns a node identifier).