01-26-2012 03:04 PM
Is it possible to move a control to a different pane?
In other words, if a have one or more splitters on a screen can I move a control to another pane?
Solved! Go to Solution.
01-26-2012 03:10 PM
What do you mean by splitters?
You can move a control using the property node and changing it position.
01-26-2012 03:37 PM
@aeastet wrote:
What do you mean by splitters?
You can move a control using the property node and changing it position.
It's one of the container controls. I recently upgraded from LV7.0 to LV2010 so I'm not sure when this container was introduced.
01-27-2012 11:15 AM
Hi cosborne!
It sounds like you are using either a horizontal or vertical splitter on the front panel, is this right? Unfortunately the vertical and horizontal splitters are designed to isolate the two different sections of the front panel. Because of that, you won't be able to programmatically change which part of the front panel the control is on while the program is running. One option you do have is to create another control on the other side of the splitter and have that control update the value of the control on the other side of the splitter. When you don't want that control visible, you can set it as such with a property node.
The position property can only move the control inside of the front panel that it currently exists in, so you won't be able to move the control between the two sections of the front panel.
01-27-2012 11:58 AM
Thanks for the reply.
I was afraid of that. It looks like the same rule applies to controls within a tab pane.
Once a control is "owned" by a container it cannot move to another container (at runtime).
01-27-2012 12:25 PM
That is not completely true. If you make the control or indicator float over the tab control it will look like it is always there no matter what tab you are on. You can not drop it into the tab control you will have to drop it on the front panel and move it where you want it with the arrow keys. You will see a shadow if you do this but that is only there in the development environment. As soon as you hit run the shadow goes away.
Just a thought