04-28-2014 06:35 AM - edited 04-28-2014 06:47 AM
Hi
I have problem. the problem is i have to find out the index of cluster.
I have an event "mouse down" from this cluster and index should be the value where i put my mouse.
2nd thing is curently i am just abel to display only 1 popup. but i need each pop up for every every element where i move my mouse
thanks in advance.
BR
04-28-2014 06:53 AM
1. Your event is not Mouse Down, but Mouse Move
2. Clusters don't have in index, only arrays. Therefore you can't return an index.
3. You can attempt to use the mouse coordinates to work out which element of the cluster has been selected, and work out the equivalent of an index.
4. What's wrong with just using the array control instead of a cluster? Then you have an index that you can properly determine.
04-28-2014 10:33 AM
Hi
thanks for respose
but, how can I determine index of array if i use array instead of cluster?
BR
04-28-2014 11:22 AM - edited 04-28-2014 11:22 AM
(Please crop your images before attaching! Thanks.)
Use a "value change" event on the array and do a "not equal" on the old a new value. Only the changed value will result in a true. Use search array to find the TRUE in the "not equal" array and the resulting index points to the changed element. You can do basically the same with clusters, by using "cluster to array" at the right time.
(If you insist on using mouse down events, you can gt the coordinates from the event terminals and thus calculate where it went down.)
04-28-2014 02:36 PM
It is possible because there is a cluster toolkit in VIPM that has an Index Cluster function.
04-28-2014 03:00 PM
altenbach wrote:Use a "value change" event on the array and do a "not equal" on the old a new value. Only the changed value will result in a true. Use search array to find the TRUE in the "not equal" array and the resulting index points to the changed element. You can do basically the same with clusters, by using "cluster to array" at the right time.
Here's what I had in mind (LabVIEW 8.2)