To add the menu choices to its File and Edit pull-down menus, do the following:
1. Put a check mark in the Sticky check box.
2. Select
![Menu Choice icon Menu Choice icon](../hd/images/mnuch.gif)
(Menu Choice part) from
![Menus category Menus category](../hd/images/menucat.gif)
(Menus category).
3. Click once on the File pull-down menu on the free-form surface. (It's called Popup Menu1.) And click four times on the Edit pull-down menu, Popup Menu2.
4. Click on
![Selection tool Selection tool](../hd/images/select.gif)
(Selection tool) to de-activate the
Sticky.
5. Change the labels of the menu choices. The
File pull-down menu has the choice
Exit.
![Window with menu choices Window with menu choices](../hd/images/prtmenu3.gif)
And the Edit menu has the choices Cut, Copy, Paste, and Select all.
Next, add a separator between the Paste and Select all choices.
![Separator icon Separator icon](../hd/images/separ.gif)
(Separator part) is in
![Menus category icon Menus category icon](../hd/images/menucat.gif)
(Menus category).
The
Edit pull-down menu now resembles the following:
![Pop-uo Menu Pop-uo Menu](../hd/images/prtmenu4.gif)
Finally, connect the clicked event of each menu choice to the following actions:
Menu choice
Target action
Exit
Window's closeWidget
Cut
Multi-line Edit's cutSelection
Copy
Multi-line Edit's copySelection
Paste
Multi-line Edit's paste
Select all
Multi-line Edit's selectAll