06-19-2014 08:40 AM
I am trying to put a mouse down with a mouse down in the same event. The first mouse down is to control a graph and the second a table. When I add the second mouse down event the Graph mouse down doesn't work.
What am I doing wrong>
06-19-2014 08:47 AM
Please attach your code. Seems to work just fine in my limited testing.
06-19-2014 08:47 AM
Can you post code?
Mike...
06-19-2014 08:49 AM
What I think I am doing wrong is I was using property nodes with references to the control instead of having direct property nodes. I am currently changing these I will update if I still have the same problem
06-19-2014 09:09 AM
@PauldePaor wrote:
What I think I am doing wrong is I was using property nodes with references to the control instead of having direct property nodes. I am currently changing these I will update if I still have the same problem
That should not make a difference. What do your property nodes have to do with the events problem described earlier?
06-19-2014 09:12 AM
My property nodes were wired to the CtlRef on the Event Data Node and when I added the second mouse down event it stopped that working for some reason. I just right clicked the graph and made direct property nodes of the same properies and this solved the problem
06-19-2014 09:27 AM
Define "stopped working". Broken arrow? Event no longer reacts?, etc.
If you think there is a bug, you should attach a simplified version of the VI so we (and NI) can investigate.
Theoretically, it should work just fine using the control reference from the event data node.
But yes, if there are references to two different classes of controls, you probably need to upcast the reference to the more specific class, depending on the properties you want.
06-19-2014 09:34 AM
By stopped working I mean a broken run arrow and disabled property nodes giving broken wires
I have attached the xy graph code being used
06-19-2014 09:46 AM
If you mix two types of controls in the event, you need to cast the reference to the more specific class to get all desired properties.
06-19-2014 09:47 AM
@altenbach wrote:
If you mix two types of controls in the event, you need to cast the reference to the more specific class to get all desired properties.
Thanks for your help altenbach