10-22-2015 01:49 PM
Hi,
I have a question. Is there any example for displaying the png images on fp wrt every mouse click coordiantes . if any please post it, Soultions please let me know.
10-22-2015 01:58 PM
Are you trying to draw on top of a picture? You can use the Picture Functions palette to do this if you track mouse clicks.
I made a VI that draws lines on a picture when the user clicks and drags between two points. I'll attach it here and you can play around with it to see what I did. Essentially, I just store the coordinate of the first click upon Mouse Down event. Then, I use the stored coordinate within the Mouse Up event to draw the line.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-22-2015 02:38 PM
Hi,
Thanks a lot. Please post in 2011 LV.
10-22-2015 03:27 PM
Hi,
I'm not trying to draw on a picture. I just want to place a Png on FP, wherever i click the mouse on FP.
10-22-2015 03:32 PM
That's a little tougher because you can't create picture controls on the front panel while the VI is running. The alternative to this would be to have one really large picture control and insert the smaller pictures in to the large picture data. So in the end it would be like overlaying small pictures over the top of a large one.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-22-2015 03:37 PM
Here's the 2011 version of that VI. At least with this, you can see how to use mouse click events with coordinates.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'