[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ExtCtrls' (#lcl)

# TCustomTrayIcon.PopUpMenu

Pop-up menu displayed when right mouse button is clicked over the icon for the control.

## Declaration

Source position: extctrls.pp line 1463

`public property TCustomTrayIcon.PopUpMenu : TPopupMenu read FPopUpMenu write SetPopUpMenu;`

## Description

PopUpMenu is a TPopupMenu property which contains the menu displayed when the Right mouse button is clicked on the Icon for the class instance. Setting a new value for the property causes the existing pop-up menu instance to be removed from the free notification list for the control. The new pop-up menu instance is added to the free notification list. It is used when the widgetset class instance detects a Right mouse button event over the control.

Use the OnMouseDown, OnMouseMove, or OnMouseUp to implement callbacks for mouse events in the widgetset class.

## See also

TCustomTrayIcon.Icon |  | The Icon or picture that displayed on the tray icon.
TCustomTrayIcon.OnMouseDown |  | Event handler signalled when a mouse button down event is detected for the tray icon.
TCustomTrayIcon.OnMouseMove |  | Event handler signalled when a WM_MOUSEMOVE message is handled for the tray icon.
TCustomTrayIcon.OnMouseUp |  | Event handler signalled when a mouse button up event is detected for the tray icon.
TPopUpMenu |  | Implements a menu panel that pops up on the screen when the right mouse button is clicked.