Put TPopupMenu on your form and create your menu. Then select the component that popupmenu is intended for (DbGrid, TreeView, ...), and set its PopupMenu property to the PopupMenu that you just developed.
You may have a different PopupMenus for different components.
source share