LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

INSERT A COMBOBOX INTO A TABLE CONTROL

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.

0 Kudos
Message 11 of 15
(1,876 Views)

Oops!  There's a race condition in that XControl (can cause wrong values to be output).

Here's the fixed version.

 

"If you weren't supposed to push it, it wouldn't be a button."
Message 12 of 15
(1,833 Views)

Paul, can you save to a previous version, please?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 13 of 15
(1,821 Views)

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.

https://dbi-tech.com/ComponentPage_ctGrid.aspx

0 Kudos
Message 14 of 15
(1,810 Views)

@pincpanter wrote:

Paul, can you save to a previous version, please?


 

"If you weren't supposed to push it, it wouldn't be a button."
Message 15 of 15
(1,796 Views)