01-08-2015 06:22 AM - edited 01-08-2015 06:23 AM
Here's a modification to deal with scrollbars turned on.
I couldn't find a reference to the scrollbar itself, so I fetch a change of the IndexValues and put it into a User Event which then does the same as clicking anywhere else but on an array element.
A condition to the color change had to be added, so that the decoration doesn't become visible when clicking on the scrollbar instead of the element. The disadvantage here is that the blinking immediately stops, when you move the scrollbar even just one element further which I suppose is undesirable with a larger number of visible array elements . Perhaps it is possible to use a combination of NumberOfColumns and IndexValues to determine whether moving the scrollbar made the currently blinking element disappear from view.
I don't know whether performance might be an issue here, as getting hold of the change in IndexValues cannot be done by events, as far as I know of, so an old-fashioned while loop with timing had to fix it.
Apologies for the local variable to end the additional while loop and the missing of any error wires and appropriate handling of errors. But you should get the idea.
01-08-2015 07:01 AM
Thanks for help but I am trying to do something that looks nicer 🙂
I was digging on array of xcontrolls and it seems that is inpossible:
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Array-of-XControls/idi-p/1107173
So I am out of ideas.
01-08-2015 07:32 AM
After more diging I have found another option, it looks like we can have more than one row of symbols in listbox:
https://lavag.org/topic/7002-multiple-glyphs-columns/
It would solve problem but image size limitation is 16x16 px