As I recently discovered there is a published property missing in the component NTabEd: LeftCol.

LeftCol and TopRow are needed to determine the indices of the column and the row in the grid, where the mouse is pointing at.

As long as the table fits completely into the display, determining the indices by the mouse coordinates is simple. But if the table is larger and you need to scroll the view, you need the indices of the uppermost row and the leftmost column to calculate the indices of the selected row and column respectively. The base class TCustomGrid provides these indices as the protected properties TopRow and LeftCol. In order to make them available for a developer, the derived class, here TNtabEd, has to publish them.

This has been done with TopRow, but not with LeftCol.

We need to determine the column and row to allow the user to manually and selectively add and delete rows and columns from the table. The implemented popup menus do not provide these functionalities, so we had to build our own popup menu, which implement these features. But since the functions RemoveCol, RemoveRow, etc. require the index as argument, we need to calculate it by the method described above. This works fine for the row, but not for the column, because LeftCol is not published and thus not accessible.

Since we were not able to find any workaround to solve the problem, we would greatly appreciate if you could correct this, either by publishing the LeftCol property, by implementing "Add Row", "Delete Row", "Add Column", "Delete Column" to the implemented standard popup menus of NTabEd or by providing methods to retrieve the indices of a selected row and column (e.g. "GetSelectedRow()", "GetSelectedCol()", which return the properties Row and Col, implemented by the base class) or all of those.

And we would greatly appreciate if you could then provide us with an update, which we are in dire need of.

Thanks for the hint! We will implement all your requirements with the next release, which is scheduled to be available by end of the year.

In order to provide a quick fix, I can offer to publish LeftCol and send you the compiled package by mail. Please let me know the compiler you are working with by sending me a mail to "hans at epina dot at".