08-20-2018 12:35 PM
Thanks for sharing. Yeah I worked on a "Defined Table" XControl a while ago and made some cool progress. But just like many XControl projects they fall into a pit of developing work arounds for odd behavior, and trying to support too many features. Mine had the data type of a Variant, and had support for color boxes (colors the cell), strings, numerics, drop down enums or arrays of string, and booleans. The table would be made at runtime based on the data type provided, which was expected to be a cluster, and reading the variant would return an array of that cluster based on the values and arrangement from the user.
Also had support for navigation with <Return> or <Shift><Return> to travel down or up the table and Tab to travel to the left or right, with the ability to go down or up rows at the end or start of the columns. Also supported scrolling in if the movement would hide a row. Automatic Column Width, Moveable columns, disabling cells or rows, column sorting on user interaction or methods, and rearranging items with dragging and dropping. I wanted to make a setup where I could drag from one defined to table to another but never finished. Every once in a while I get an urge to finish it and clean it up, but I just keep adding new features when I find use cases that it doesn't meet, just like most XControls.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-10-2018 08:25 AM
Oops! There's a race condition in that XControl (can cause wrong values to be output).
Here's the fixed version.
09-10-2018 09:10 AM
Paul, can you save to a previous version, please?
09-10-2018 11:46 AM - edited 09-10-2018 11:47 AM
There are also third party ActiveX controls that implement ring pull-downs (combos) in a table and much more like button and progress bars.
Specifically the ctGRID by DBi Technologies. It requires licensing and ActiveX programming knowledge (using call-backs) but I've found they are much more functional, processor efficient and time saving than trying to build something into an XControl.
If you're developing professionally the cost of licensing is small in comparison to the time saved and functionality gained.
09-10-2018 02:50 PM
@pincpanter wrote:
Paul, can you save to a previous version, please?