ctr26 Posted August 24, 2015 Report Posted August 24, 2015 Hi All, I am trying to make a control that has a textbox on the left and a text/combobox on the right in a scrollable box. I have tried to do this so far by making a cluster of the two and then having an array of that cluster. But, when I try to do this whatever I add as an edit item in any combobox is then automatically added to every other combo box in the list. I would like it so I can have different dropdown lists for each combobox in the list. Any help welcome! Craig Quote
smithd Posted August 24, 2015 Report Posted August 24, 2015 So far as I know this isn't possible to work around since its an array. However it should be possible to get a "Mouse Down?" or similar event on the combo box which would potentially allow you to figure out which index you are at and then fill in the elements programmatically. The values would still be identical for all combo boxes in the front panel, but the user wouldn't know because the values change every time they click. On the other hand, if you were just getting ready to manually edit each combo box's values by hand, it may be just as well if you simply make a cluster with all the combo boxes you need. 1 Quote
ned Posted August 24, 2015 Report Posted August 24, 2015 (edited) A similar question gets asked frequently over on the NI forums, take a look at these threads (this is just from the first few search results): http://forums.ni.com/t5/LabVIEW/Dynamic-combo-box-in-cluster-array/td-p/3180033 http://forums.ni.com/t5/LabVIEW/How-to-populate-an-array-of-ring-controls-with-strings/td-p/1841053 http://forums.ni.com/t5/LabVIEW/Creating-an-Array-of-Rings-Programmatically/td-p/3070688 http://forums.ni.com/t5/LabVIEW/How-to-create-an-array-of-ring-with-a-different-items-values-for/td-p/2823240 http://forums.ni.com/t5/LabVIEW/Dynamically-changing-elements-in-an-array-of-menu-ring-controls/td-p/3141078 Edited August 24, 2015 by ned Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.