This example shows how to add a second window to the Composition Editor and move easily between the windows.
1. Select
(Canvas category) and then
, the Window part.
2. Click on the free-form surface.
Now, add a push button to each window.
(Push Button part) is in
(Buttons category).
To add function to the parts, make the following connections:
•Connect the clicked event of the Open Window2 push button to the openWidget action of Window2.
•Connect the clicked event of the Cancel push button to the closeWidget action of Window2.
Finally, test the application. Selecting Open Window2 opens the window you added, and selecting Cancel closes it.