LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Move control between panes

Hello

 

With multiple panes at the same VI front panel, my users need to be able to move controls between those panes. It seems like it's only possible to get information about which pane the control is placed and not to change which pane it belongs. Anybody who knows about this is correct, or knows how to do?

 

Thanks in advanced

 

Vagn

0 Kudos
Message 1 of 3
(2,849 Views)
Are you saying you want to be able to move the controls while the VI is running? Without panes this can be done, though it's a little tricky. In essence you have to register for the mouse down, mouse move, and mouse up to track the movement of the mouse and update the control's position accordingly. With panes it's a different story. To do so would require being able to update the "Controls[]" property of the pane at run-time which you are not allowed to do. Perhaps instead of using multiple panes you could use decorations?
Message 2 of 3
(2,837 Views)
That’s correct, I want to be able to move controls while the VI is running! I also noticed that "Controls[]" is a read only property - that’s why this post. I am aware of registering mouse events to control front panel objects.
 
Let me explain a bit more of what I want to do with the application:
From a user specified configuration file I need to load a number of modules (VI's) into subpanels (first problem --> it's not possible dynamically to generate subpanels --> make a lot of subpanels and hide them until use).
 
Modules are shown in a "minimized" subpanel as a thumbnail in left side of front panel. User is now able to drag subpanel to right side for larger view. Split bars are used because it's possible register mouse-event with those. In this way its possible dynamic to control size (and align) subpanels on both sides of the split bar. (Almost like TestStand User Interface).
 
Decorations are not an option.
 
I thought Split bars is a nice way to control the subpanels, but seems not...???
0 Kudos
Message 3 of 3
(2,817 Views)