TrayIcon

A notification-area icon owned by a top-level window.

Constructors

this
this(Window owner, string tooltip)

Create a tray icon for owner with the given tooltip.

Members

Functions

remove
void remove()

Remove the icon from the notification area.

setContextMenu
void setContextMenu(Menu menu)

Set the menu shown on right-click (or Apps key while the icon is active).

setIcon
void setIcon(HICON icon)

Set the icon image shown in the notification area.

setTooltip
void setTooltip(string text)

Change the hover tooltip text.

showBalloon
void showBalloon(string title, string text)

Show a balloon notification with title and text.

Variables

onDoubleClicked
Event!() onDoubleClicked;

Fired when the icon is double-clicked with the left mouse button.

Meta