For tables where the lines contain the boundaries of the rectangles, determine the line where the specified point falls.

Call:

int ires = ts_table(1,"search_bounds", int colnumSX, int columnSY, int columnEX, int columnEY, double posX, double posY, int startrow, int endrow);


ires - search result -1 if not found, or line number.

columnSX, columnSY, columnEX, columnEY - numeric indexes or textual names of the columns containing the corresponding values ​​describing the borders of the rectangles;

posX, posY - coordinates of the point, which we check what boundaries it fell into (we are looking for a line with a rectangle that has this point inside);

startrow - index of the starting search string;

endrow - index of the end row of the search. If -1 means to search until the end.


An example can be found in the LABPP_Table_unicode.cpp file - a quick cell definition in a table by mouse click coordinates.