
This provides a popup menu which appears when a component is right-clicked. To set the menu that appears select the menu from the PopUpMenu property in the Properties part of Object Inspector for the component.
For example, first we add a control (such as a memo), which we think will benefit from a popup menu. We also add a Popup Menu control and an Action List control from the Standard Palette:

We add some standard items to the Action List (for details see the Action List section):

We now double click the Popup Menu icon and create the menu items. The menu items have already been created at this stage, all we have to do is connect the blank blue rectangle to the Action list in the Object Inspector to fill it in:


To make the popup menu work on a right click of the mouse go to the events list of the form, find PopupMenu and select the popup menu object from the list (probably PopupMenu1).
The popup menu should now be ready to use:
