Extracting contents of table's target cell?
Thu, 08/16/2018 - 11:33 am
As part of a programming project using Igor Pro v.8, I want to make sure that numeric data my user enters into a table (itself a subwindow within a panel), is properly bounded. I've created hook functions for the parent window and for the table subwindow and plan to detect when the user moves away from the target cell (ex. Enter or Return, Arrow Keys, etc). At that time, I want to read the content of the target cell and limit the entered value to within my [min, max] range.
In this circumstance, how can my code determine the contents of the target cell? In some circumstances it seems sufficient to use the value of the corresponding point in the wave represented by the column in the table, but in other circumstances, that scheme doesn't seem to work. For example: move to a cell already containing a value; enter a new numeric value; press Enter. In this case, the point in the wave does not yet (in the hook function), contain the new numeric value -- instead it contains the previous point.
I would've thought that GetSelection table, ... would be approp. function to read the data directly from the table itself, rather than the 'backing wave', but I haven't yet found a way to get the value of that target cell.