05-15-2012 10:42 AM
Problem:
There is an array of clusters which indicate the various equipment detected on the serial bus by make, model, and serial number. The goal is to provide a comprehensive list to the user and allow them to select individual devices to perform several different opperations, such as remove from list and verify all, which are being handled in a mouse down, or value change event structure. How do I keep a control, like a select button, linked up to the respective cluster element in the array?
Solved! Go to Solution.
05-15-2012 10:55 AM
Buttons are no fun in arrays for the user events.
You will lose the ability to use latch when releaed, and instead the best you can do is detect a value change for the entire array, then test to see which one was pressed. At that point you'll need to set the value of the button back to false. This will give you a mechanical option of latch when pressed.
I've done this, but I'm never happy with the mechanical boolean operation of buttons in the array, nor do I like the increased complexity detecting the button press.
05-15-2012 10:59 AM
If you don't put the button inside the array, you can calculate the array position using a property node with property IndexVals.
05-15-2012 11:10 AM
Does sound a bit problematic.
If a nice user interface is required try parsing and representing the cluster in a multicolumn listbox and having a right click menu, or buttons which act upon the selected row.
05-15-2012 11:12 AM
This sounds do-able. I'll have to play with this scenario. Thanks
05-15-2012 11:13 AM
Never used a listbox before but this also sounds like something worth trying. Thanks