06-19-2006 08:16 AM
06-19-2006 08:33 AM
Hi
Your idea is not that bad. What you could do to improve, is just to move the pane after the mouse up event. Instead of moving the pane in each mouse move event, you could calculate dx and dy.
Thomas
06-19-2006 08:52 AM
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
06-19-2006 08:59 AM
No problem. Here you are...
06-19-2006 09:10 AM
i get it, thank you so much.
by the way, do you know whether it is the same way in vc++
06-19-2006 09:10 AM
Hi Becktho,
Thanks - although LV didn't like it. I guess it's probably down to the fact that panes aren't in LV7.1
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
06-19-2006 09:13 AM
Yes you're right - didn't think about that.
But basically you should be able to do it the same way by setting the panel origin.
If it is the same in VC++ I can't tell you. The basic idea should be useable there as well.
06-19-2006 07:45 PM
06-20-2006 12:12 AM
Hmm - two brians with the same type of task. Seems to be some school exercise.
Well brian005 - you can look at the other answers. I don't want to post the same thing twice.
06-20-2006 12:34 AM
it is different, in this case, you cannot get mouse event over pane, instead, get mouse event over the control, the difference between control and pane is: you always can get mouse up event of pane, but for control, you always lost the mouse up event, because the mouse move out the control, so the way should be different.
you can try the following vi
any suggestion?
thanks for reply