loubar Posted May 14, 2009 Report Share Posted May 14, 2009 Hello everybody. My problem is this: I need to drag & drop a cluster (which is composed of a boolean indicator and a numeric indicator) from one VI to a chart that is placed in another VI (of course the two VIs are running at the same time). The behaviour that I want when I drag the cluster from the first VI and leave the "mouse up" in the chart placed in the second VI is that this one "realizes" of this event and immediately it displays the data stored in a global variable. I was searching in the User interface topic and I found this post http://forums.lavag.org/Drag-n-Drop-t1733.html that almost fulfills my expectations. Thank you. Quote Link to comment
Karissap Posted May 15, 2009 Report Share Posted May 15, 2009 Here's an example of something like what you might be after. It's a pretty simplified version of things. You might need extra data checking and handling etc when you actually implement it. The basic principle is to use a control method node to register the drop data when the mouse down event and the mouse leave event happens: Then on the source control/indicator use the drag enter event to decide whether the data is valid and use drop event with the get drag/drop data to get the data and update the control/indicator: Quote Link to comment
loubar Posted May 15, 2009 Author Report Share Posted May 15, 2009 CITA(Karissap @ May 14 2009, 04:57 AM) Here's an example of something like what you might be after. It's a pretty simplified version of things. You might need extra data checking and handling etc when you actually implement it.The basic principle is to use a control method node to register the drop data when the mouse down event and the mouse leave event happens: Then on the source control/indicator use the drag enter event to decide whether the data is valid and use drop event with the get drag/drop data to get the data and update the control/indicator: It's OK. Thank you very much Karissap. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.