LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to move a cluster with the mouse

I'd like the user to click a small cluster and drag it to alternate locations on the front panel of the vi.  Can this be done?  I'm using Win-XP and LV 8.5.1.

 

Dave J.

0 Kudos
Message 1 of 5
(3,072 Views)

Hi Dave,

you can use an Event Structure. Use the Events mouse down, mouse move and mouse up. In these events you can change the cluster position with a property node.

 

Mike

0 Kudos
Message 2 of 5
(3,064 Views)

Are you talking about moving the cluster during running or in edit mode?

 

  • While in edit mode: just do it!
  • While running: use Mike's idea. 🙂
0 Kudos
Message 3 of 5
(3,061 Views)
In the run mode.  I'm sorry for not clarifying that.  Think of the cluster as a pop-up that the user can relocate by clicking and dragging the upper "blue bar."  Is there an example of how cursor control (or cursor location) can be used to dynamically relocate an object?
0 Kudos
Message 4 of 5
(3,057 Views)
Open the Example Finder (Help -> Find Examples). Search for "dynamic". Open the example called "Dynamically Register for Events". It's one way to do it.
Message 5 of 5
(3,034 Views)