04-27-2017 02:31 AM
Hello, I am wondering if it is possible to change the color of the array selection propriety. I have been looking for all the proprieties and i searched in the forum but didn't find a solution yet.
Attached is an example of what I mean for array selection, I guess you know what I mean..
Thank you in advance!
04-27-2017 02:53 AM
Use a table indicator and you have full control over the the background color of each cell, so use that. (example view).
04-27-2017 07:58 AM
I need it on an array because I have an array of clusters, I can't use a table. I thought there could have been some VI Scripting technique or something else but I guess it is not possible then.. 😞
04-27-2017 09:08 AM
I did some digging, but couldn't find any way to change the color.
04-27-2017 09:52 AM - edited 04-27-2017 09:53 AM
As altenbach said, you can adapt the table view to display the cluster (as text?) and convert it back to cluster-form when you're done.
04-27-2017 10:02 AM
@MPolaszyk wrote:
As @altenbach said, you can adapt the table view to display the cluster (as text?) and convert it back to cluster-form when you're done.
No back conversion is ever needed. Just keep the original data and branch into a dead-end for display processing.
04-28-2017 01:22 AM
what do you mean with "adapt the table view to display the cluster"? I don't understand but I upload a "array of cluster" version of my example and I hope you can edit it in order to show me what you mean.. thanks!
04-28-2017 03:11 AM
hi cassaniti,
a table can only have strings as its datatype (in fact a 2-dim-string-array is the value of a table)
what altenbach means is you could generate a string-representation of your array elements, but i don't think that is what you want.
another way would be to position something (e.g. a cluster) over a cell and adapting the cell size so it seems there is only 'something'.
i have done this with an enum, because i wanted a dropdown menu in a cell, but for your array of clusters this would be much more involved i presume.
a simple search found me this, perhaps that will take you further:
:cheers:
04-28-2017 05:26 AM - edited 04-28-2017 05:42 AM
@jwscs wrote:
another way would be to position something (e.g. a cluster) over a cell and adapting the cell size so it seems there is only 'something'.
If you wanted to do something so complicated, wouldn't drawing a coloured box around your array element be easier?
Edit: I've tried to find a suitable was to put a boolean as a string, but no characters that I can find with this snippet look particularly boolean. If you're ok with 'T' and 'F' or 'True' and 'False' or similar, I think the table is likely to be a good choice.
04-28-2017 05:56 AM