02-08-2012 08:15 AM
I have a program with several data tables of fixed size. Each data table row corresponds to a boolean control to determine whether the data row is to be included in the current task. The boolean controls are placed next to the table and aligned with each row. If you are entering data in the last row of the table (or column) and press enter, the entire table shifts down a row, leaving an empty row at the bottom, and the boolean controls are no longer lined up. When other users attempt to enter data and use the controls, this can result in major errors if the table is not aligned.
I have turned off the vertical and horizontal scroll bars and fixed the number of visible rows and columns and locked the table, but none of these options prevent the user from being able to shift the table view to unused rows or columns. Please let me know if this can be locked.
02-09-2012 05:18 PM
Hi,
Yes you can, see code below.
Regards,
Greg H.
02-09-2012 05:33 PM
Hi,
Sorry incorrect code. I would use the set table size property nodes to just reset the size if it changes. See attached code.
Regards,
Greg H.
02-09-2012 05:39 PM
That works while the vi is running, but is there a way to have it locked the same way before the vi is started? All of the controls for my tables in my vi are set before starting running.
02-09-2012 06:09 PM
Hi,
What you could do is just set that property node to run first and it will resize the table as soon as the program starts.
Regards,
Greg H.