03-07-2009 10:40 PM
Hello...
I have a event structure that is triggered by cursor move of two different graphs (1 and 2). But since both graphs can trigger the case, I need to know which of them was used to trigger. In other words, the "cursor move" event that triggered the case came from graph 1 or graph 2?
Thanks in advance.
Code attached.
Dan07
03-07-2009 11:25 PM
03-08-2009 03:06 AM - edited 03-08-2009 03:07 AM
It is simpler to just compare one of the control references with the event terminal (See image).
(If you have even more graphs, you could make an array of references, do and equal, then find the index of the changed element.)
03-08-2009 10:02 AM - edited 03-08-2009 10:02 AM
Hello Altenbach...
I understood your sugestion, but if I have a lot of graphs it will be not so easy to build a array. See attached image.
Is there a way to run a for loop to build this array, just changing the name of the graph? Since I use numbers to label my graphs (i.e: 1, 2, 3, 4....).
Thanks
Dan07
03-08-2009 01:12 PM - edited 03-08-2009 01:13 PM
dan07 wrote:I understood your sugestion, but if I have a lot of graphs it will be not so easy to build a array. See attached image.
Well, if you have a lot of graphs, the problems of the front panel will probably exceed the small problem of creating an array of references. 🙂 Manually creating an array of references seems trivial and I don't see why you don't like it. 😉
Still, if you are really looking for a programmatic solution, you could do something along the lines of the attached draft. Seems more complicated, though! 😮