Use view wrappers
Prompt for text inputPrompt for text inputNo tip for this topicExample: Wrapper an input windowExample: Wrapper an input windowStart external programsStart external programs
If you make applications that have multiple windows in a Composition Editor, consider using view wrappers to reduce clutter. View wrappers are nonvisual parts that represent the contents of a window.
Suppose you have two windows in a Composition Editor. To use a view wrapper for one of the windows, do the following:
1. Add a visual part to your application and open a Composition Editoron it.
2. Copy the window that you want to wrapper to the new visual part and, if necessary, reconstruct the window so it runs like it did before copying. You might need to use the Public Interface Editor to define attributes, events, or actions which other parts can use.
3. In the Composition Editor that has the multiple windows, select the window copied to the new visual part and then select Delete from its pop-up menu. Also, if prompted whether you want connections deleted, select OK.
4. Select Models category icon, the Models category, and View Wrapper icon, the View Wrapper part. Then, click on the free-form surface to add the part. Optionally, you can specify a name for the view wrapper in the partName field of its settings.
To use the view wrapper, connect its attributes, events, or actions to those of parts in the other window(s). If you use event-to-action connections with the view wrapper, note that those connections won't run until after wrappered view opens.
Last modified date: 08/14/2019