05-11-2007 05:57 AM
05-11-2007 09:48 AM - edited 05-11-2007 09:48 AM
Message Edited by mikeporter on 05-11-2007 10:50 AM
05-11-2007 10:05 AM
No you see that is the problem:
mouse enter and leave work perfectly on the whole array, not on specific elements.
i could not find a way to check which element is selected in case of mouse enter or down.
the only solution i found was to transform my array into a cluster. then the whole thing work. but we come back on the problem of inserting elelments!
05-11-2007 10:33 AM
05-11-2007 10:39 AM
05-11-2007 01:37 PM - edited 05-11-2007 01:37 PM
Mike and Altenbach,
thanks for the tips, however in this specific case they dont help me. the thing is for a table all the nessecary properties are obtainable via a property node (as you point out), so i can then figure out how to use it to create an event to a specific element with the mouse.
this is the same with a cluster.
the problem come when we want to use a plain array. in my case i use an array of enums. there is no way (that i see) to address (or get coords) a specific element. this is annoying! i think we should send to NI a proposition for improvement on this topic. i dont see a reason why one cannot get the reference to the elements of an array, like for a cluster.
the only way i found was to use a cluster of those enums. problem: cant insert...at least, if there would be a special mouse button call for event (like right click?) i could then create an event for shifting elements in the cluster.
btw, did i said already: i love this forum! getting adicted...
Message Edited by Gabi1 on 05-11-2007 01:38 PM
05-11-2007 02:09 PM
05-11-2007 02:28 PM
Have you studied the example I quoted? The only thing it uses is the pixel coordinates, together with the cell size (element dimension in your case). I am pretty sure it can be easily adapted for 1D and 2D arrays.
@Gabi1 wrote:
thanks for the tips, however in this specific case they dont help me. the thing is for a table all the nessecary properties are obtainable via a property node (as you point out), so i can then figure out how to use it to create an event to a specific element with the mouse.
05-11-2007 02:34 PM
05-11-2007 03:10 PM