Cutting and Pasting Controls
You frequently might want to cut and paste controls. In this example, you copy controls from one panel to another. Complete the following steps to copy a control:
- Make sure the function panel from the previous example is active and in edit mode. Position the cursor on the Volts/Div control and select Edit»Control Help.
- Enter the following text in the Help Editor dialog box:
This control specifies the volts per division setting of the oscilloscope. - Save the .fp file as example.fp and select File»Close in the Help Editor.
- With the selection still on the Volts/Div control, select Edit»Copy Controls.
- Select Edit»Paste.
- With the selection on the new control, select Edit»Edit Control.
- Change the ring Control Label to Volts/Div 2 and the Parameter Position to 2.
Notice in the generated code window that the config function now has an additional parameter, Volts/Div 2.
Complete the following steps to create a new function panel and copy a control to the panel.
- Select Option»Edit Function Tree.
- Create a function panel window with the following parameters. Type New Panel in the Name box and new_panel in the Function Name box.
- Highlight the Configure node in the Function Tree Editor.
- Select Edit»Edit Function Panel Window to return to the Configure panel.
- Position the selection on the control Volts/Div 2.
- Select Edit»Cut Controls.
- Press <Ctrl-Page Down> to move to the New Panel function panel.
- Select Edit»Paste.
The control appears on the panel. View the help by selecting Edit»Control Help. Notice that the help is copied with the control.