Selects element of sorted data with specified index according to current sort mode and scrolls window so that selection is visible. This function neither redraws nor invalidates nor creates window and has no effect on owner-drawn table windows.
void Selectandscroll(t_table *pt,int index,int mode);
Parameters:
pt - pointer to descriptor of table window;
index - index of element of sorted data according to current sort mode;
mode - request for position of selected line in window. If mode is 0, this is always the topmost line, if 1 - line in the middle of the data area, 2 - selected automatically (recommended when calling function walks through all table entries).