02-26-2009 03:14 AM
Hi,
I'm using LabVIEW 8.5. I want to move the control anywhere in front panel. For example in the attach file I want to pick up the pict control (with the help of mouse) and drop it anywhere in front panel. second thing I want to ask if I want to make it copy paste, means main control will b at its initial position and where the mouse moves the image moves and when I leave the mouse the image gets drops there. How to do it. Please help me.
- Thank You
02-26-2009 04:00 AM
Hi Sonali,
use the example finder to find an example for drag and drop. There is also an example with a picture ring.
You should create an event for your stop button.
Mike
02-26-2009 04:13 AM
Thanks, I have seen that example, but I don't want fix destination, I want to drop it anywhere in front panel.
Thank you
02-26-2009 04:16 AM
Hi Sonali,
i think it's not simple to drop a picture on the frontpanel at runtime without using a control. You can use a picture control as background and drop it there. With "draw unflatten pixmap" you can select the position of your moved image.
Mike
02-26-2009 04:21 AM
Hi,
So its not possible to drop anywhere??... In my application I need to make the full track from one station to another and its not fixed where I want turns also. According to condition I will make the turn.
- Thank you
02-26-2009 04:26 AM
Hi Sonali,
if you use a picture control, then you can drop it inside of it. If your picture control has the size of your fp then you can drop it everywhere. If you want to draw directly on the front panel then you need some functions from the win api.
Mike
02-26-2009 04:32 AM
Without pict control how to make it possible? One more question If I want to rotate one more control over it (obviously Train), how to do it?
- Thank you
02-26-2009 04:33 AM
Sonali,
You can get some idea here.
But I think you CANNOT copy & paste controls/indicators on the fly.
02-26-2009 04:38 AM
02-26-2009 04:40 AM