11-24-2010 08:35 PM
我想实现如下的功能。在一个自定义的工具栏里面创建很多图片。然后每拖动一个图片,就在前面板上创建一个新的同样的图片到某个位置。到底应该怎么实现这个功能呢?想了挺久,都没个思路。请高手们多多指教,给个idea。
Solved! Go to Solution.
11-25-2010 01:39 AM
While I have only access to LV7.1 at this moment, I have created attached VI using Picture Functions
Please take note that Instead of Drag & Drop image, this ugly example does it by Click-to-Select & Click-to-Drop 😛
Though it is ugly but hope it does give you some ideas... Or, there may be more useful functions for such...
PS1: I made use of the Forum's Kudos images and thus attached as well.
PS2: Prior to running the VI, please enter new image paths (path to where the images are stored in your system)
11-25-2010 04:10 AM
I will try. Thank u very much.U have helped a lot of people! U have a good soul...
11-25-2010 04:17 AM
maybe using the event of mouse key down will be better?
11-25-2010 05:24 AM
云上飞 已写:
maybe using the event of mouse key down will be better?
你的这个想法比较好!
11-25-2010 09:23 AM - edited 11-25-2010 09:26 AM
@云上飞 wrote:
maybe using the event of mouse key down will be better?
As long as it works, Yes.
PS: When creating example, the main purpose is to get the idea and working basic solution, before further optimize the code. I don't usually use event case 🙂 especially when I started using Picture functions even before the event case exist. That's personal habit though 😛