Testing the tool bar
At this point, you can test the clipboard tool bar.
Reuse the application MyTestSamplePartsApp and create a new visual part, MyToolsTestView, for testing.
Note:
If you have not already created the test application, do so now.
Add the parts to the test view:
1. In MyToolsTestView , add a Multiline Edit part to the Window part.
2. Next, from the Options menu select Add part. Type MyClipboardToolsView in the Class name field. Place the tool bar anywhere on the Window part.
This adds a tool bar to your test application and the Multiline Edit part that will test it. Next, add the connections that will test your toolbar.
1. Connect the cutPressed event of the tool bar to the cutSelection action of the Multiline Edit part.
2. Connect the copyPressed event of the tool bar to the copySelection action of the Multiline Edit part.
3. Connect the pastePressed event of the tool bar to the paste action of the Multiline Edit part.
Test the part. Type some text in the entry field and select it. Select the Cut push button. Next, select the Paste push button.
The selected text should have been removed from the Multiline Edit part and then placed back again. If not, edit the clipboard tool bar and make certain that all the connections and scripts are correct.
Last modified date: 07/17/2020