JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions
SystemTrayIconComponent Class Reference

On Windows and Linux only, this component sits in the taskbar tray as a small icon. More...

Inherits Component.

List of all members.

Public Member Functions

 SystemTrayIconComponent ()
 ~SystemTrayIconComponent ()
 Destructor.
void setIconImage (const Image &newImage)
 Changes the image shown in the taskbar.
void setIconTooltip (const String &tooltip)
 Changes the tooltip that Windows shows above the icon.
void paint (Graphics &g)

Detailed Description

On Windows and Linux only, this component sits in the taskbar tray as a small icon.

To use it, just create one of these components, but don't attempt to make it visible, add it to a parent, or put it on the desktop.

You can then call setIconImage() to create an icon for it in the taskbar.

To change the icon's tooltip, you can use setIconTooltip().

To respond to mouse-events, you can override the normal mouseDown(), mouseUp(), mouseDoubleClick() and mouseMove() methods, and although the x, y position will not be valid, you can use this to respond to clicks. Traditionally you'd use a left-click to show your application's window, and a right-click to show a pop-up menu.


Constructor & Destructor Documentation

Destructor.


Member Function Documentation

void SystemTrayIconComponent::setIconImage ( const Image newImage)

Changes the image shown in the taskbar.

Changes the tooltip that Windows shows above the icon.

void SystemTrayIconComponent::paint ( Graphics g) [virtual]

Reimplemented from Component.


The documentation for this class was generated from the following file: