This example shows how to make a simple application that prompts users for a new name for a window. The application uses a Text Prompter part and push buttons.
Adding the using interface
Begin by creating an application, adding a visual part to it, and opening a
Composition Editor on the visual part. Next, add
two Push Button parts to the Window part shown in the Composition
Editor.
(Buttons category).
After you add the push buttons, change their labels
and arrange them so the user interface looks like the
following:
Adding the Text Prompter part
Next, add the text prompter:
Changing the settings for the prompter
Define what the prompter displays by changing its settings:
Connecting the prompter to other parts
Make the following connections:
Finally, test the application. When you select Rename, the text prompter opens.