1 \section{\class{wxTaskBarIcon
}}\label{wxtaskbaricon
}
3 This class represents a taskbar icon, appearing in the `system tray' and responding to
4 mouse clicks. An icon has an optional tooltip. This class is only supported for Windows
95/NT and for
5 X Window System ports (wxGTK, wxMotif, wxX11), assuming the window manager supports KDE and GNOME
1.2
8 \wxheading{Derived from
}
10 \helpref{wxEvtHandler
}{wxevthandler
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
17 \wxheading{Event handling
}
19 To process input from a taskbar icon, use the following event handler macros to direct input to member
20 functions that take a wxTaskBarIconEvent argument.
23 \begin{twocollist
}\itemsep=
0pt
24 \twocolitem{{\bf EVT
\_TASKBAR\_MOVE(func)
}}{Process a
25 wxEVT
\_TASKBAR\_MOVE event.
}
26 \twocolitem{{\bf EVT
\_TASKBAR\_LEFT\_DOWN(func)
}}{Process a
27 wxEVT
\_TASKBAR\_LEFT\_DOWN event.
}
28 \twocolitem{{\bf EVT
\_TASKBAR\_LEFT\_UP(func)
}}{Process a
29 wxEVT
\_TASKBAR\_LEFT\_UP event.
}
30 \twocolitem{{\bf EVT
\_TASKBAR\_RIGHT\_DOWN(func)
}}{Process a
31 wxEVT
\_TASKBAR\_RIGHT\_DOWN event.
}
32 \twocolitem{{\bf EVT
\_TASKBAR\_RIGHT\_UP(func)
}}{Process a
33 wxEVT
\_TASKBAR\_RIGHT\_UP event.
}
34 \twocolitem{{\bf EVT
\_TASKBAR\_LEFT\_DCLICK(func)
}}{Process a
35 wxEVT
\_TASKBAR\_LEFT\_DCLICK event.
}
36 \twocolitem{{\bf EVT
\_TASKBAR\_RIGHT\_DCLICK(func)
}}{Process a
37 wxEVT
\_TASKBAR\_RIGHT\_DCLICK event.
}
40 \latexignore{\rtfignore{\wxheading{Members
}}}
42 \membersection{wxTaskBarIcon::wxTaskBarIcon
}\label{wxtaskbariconconstr
}
44 \func{}{wxTaskBarIcon
}{\void}
48 \membersection{wxTaskBarIcon::
\destruct{wxTaskBarIcon
}}
50 \func{}{\destruct{wxTaskBarIcon
}}{\void}
52 Destroys the wxTaskBarIcon object, removing the icon if not already removed.
54 \membersection{wxTaskBarIcon::IsIconInstalled
}\label{wxtaskbariconisiconinstalled
}
56 \func{bool
}{IsIconInstalled
}{\void}
58 Returns true if
\helpref{SetIcon
}{wxtaskbariconseticon
} was called with no subsequent
\helpref{RemoveIcon
}{wxtaskbariconremoveicon
}.
60 \membersection{wxTaskBarIcon::IsOk
}\label{wxtaskbariconisok
}
62 \func{bool
}{IsOk
}{\void}
64 Returns true if the object initialized successfully.
66 \membersection{wxTaskBarIcon::PopupMenu
}\label{wxtaskbariconpopupmenu
}
68 \func{bool
}{PopupMenu
}{\param{wxMenu*
}{ menu
}}
70 Pops up a menu at the current mouse position. The events can be handled by
71 a class derived from wxTaskBarIcon.
73 \membersection{wxTaskBarIcon::RemoveIcon
}\label{wxtaskbariconremoveicon
}
75 \func{bool
}{RemoveIcon
}{\void}
77 Removes the icon previously set with
\helpref{SetIcon
}{wxtaskbariconseticon
}.
79 \membersection{wxTaskBarIcon::SetIcon
}\label{wxtaskbariconseticon
}
81 \func{bool
}{SetIcon
}{\param{const wxIcon\&
}{ icon
},
\param{const wxString\&
}{tooltip
}}
83 Sets the icon, and optional tooltip text.