11-08-2011 03:37 PM
How do I move a control to another panel. For example I currently have a textbox control and 2 command buttons that I would like to move onto a Tab panel....Is there any way I can just edit the panel they are on instead of deleting the controls that I have and then creating new controls on the tab?
Solved! Go to Solution.
11-08-2011 04:10 PM
Not exactly. In general, you can "move" a control from one panel to another by duplicating it from the source panel to the destination panel (see DuplicateCtrl function). Of course, the original and duplicate controls will be distinct and independent. Similarly, you can insert an existing panel, with all its controls included, into a tab control as a tab page (see InsertPanelAsTabPage function).
Mert A.
National Instruments
11-09-2011 05:44 AM
May be you want to do the move in IDE, not programmatically...
It's very simple: select the controls you want to move, than Ctrl-X or select "Cut" in the Edit menu... then select the destination tab, hit Ctrl-V (or select Paste from the Edit menu).
That's all.
11-09-2011 07:50 AM
Thanks for the help from both of you. I did want to do it with the IDE and it was so simple. Thanks!
11-23-2012 08:03 PM
hello,Mert_A
how and where can find DuplicateCtrl function you tell,and can you give me an example about moving with copy.thanks.
wangshifeng
11-24-2012 02:06 AM
Hello wangshifeng,
what are you interested in exactly?
DuplicateCtrl is a standard function in User Interface Library of CVI you should have no problems to find. Regarding the copy, it' simply a copy- or cut-and-paste operation that you perform exactly as you do e.g. in Office or Paint, with the difference that here you select user controls instead of pieces of text or so.
If you have more specific questions or other doubts please add some details on what you are trying to do and what you want to obtain.