]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/taskbar.tex
classic/carbon split
[wxWidgets.git] / docs / latex / wx / taskbar.tex
CommitLineData
a660d684
KB
1\section{\class{wxTaskBarIcon}}\label{wxtaskbaricon}
2
18aeafcb
VS
3This class represents a taskbar icon, appearing in the `system tray' and responding to
4mouse clicks. An icon has an optional tooltip. This class is only supported for Windows 95/NT and for
5X Window System ports (wxGTK, wxMotif, wxX11), assuming the window manager supports KDE and GNOME 1.2
6systray methods.
a660d684
KB
7
8\wxheading{Derived from}
9
ea64fd02 10\helpref{wxEvtHandler}{wxevthandler}\\
a660d684
KB
11\helpref{wxObject}{wxobject}
12
954b8ae6
JS
13\wxheading{Include files}
14
15<wx/taskbar.h>
16
ea64fd02
MB
17\wxheading{Event handling}
18
19To process input from a taskbar icon, use the following event handler macros to direct input to member
20functions that take a wxTaskBarIconEvent argument.
21
22\twocolwidtha{7cm}
23\begin{twocollist}\itemsep=0pt
24\twocolitem{{\bf EVT\_TASKBAR\_MOVE(func)}}{Process a
25wxEVT\_TASKBAR\_MOVE event.}
26\twocolitem{{\bf EVT\_TASKBAR\_LEFT\_DOWN(func)}}{Process a
27wxEVT\_TASKBAR\_LEFT\_DOWN event.}
28\twocolitem{{\bf EVT\_TASKBAR\_LEFT\_UP(func)}}{Process a
29wxEVT\_TASKBAR\_LEFT\_UP event.}
30\twocolitem{{\bf EVT\_TASKBAR\_RIGHT\_DOWN(func)}}{Process a
31wxEVT\_TASKBAR\_RIGHT\_DOWN event.}
32\twocolitem{{\bf EVT\_TASKBAR\_RIGHT\_UP(func)}}{Process a
33wxEVT\_TASKBAR\_RIGHT\_UP event.}
34\twocolitem{{\bf EVT\_TASKBAR\_LEFT\_DCLICK(func)}}{Process a
35wxEVT\_TASKBAR\_LEFT\_DCLICK event.}
36\twocolitem{{\bf EVT\_TASKBAR\_RIGHT\_DCLICK(func)}}{Process a
37wxEVT\_TASKBAR\_RIGHT\_DCLICK event.}
38\end{twocollist}%
39
a660d684
KB
40\latexignore{\rtfignore{\wxheading{Members}}}
41
42\membersection{wxTaskBarIcon::wxTaskBarIcon}\label{wxtaskbariconconstr}
43
44\func{}{wxTaskBarIcon}{\void}
45
46Default constructor.
47
48\membersection{wxTaskBarIcon::\destruct{wxTaskBarIcon}}
49
50\func{}{\destruct{wxTaskBarIcon}}{\void}
51
52Destroys the wxTaskBarIcon object, removing the icon if not already removed.
53
54\membersection{wxTaskBarIcon::IsIconInstalled}\label{wxtaskbariconisiconinstalled}
55
56\func{bool}{IsIconInstalled}{\void}
57
cc81d32f 58Returns true if \helpref{SetIcon}{wxtaskbariconseticon} was called with no subsequent \helpref{RemoveIcon}{wxtaskbariconremoveicon}.
a660d684 59
6af507f7 60\membersection{wxTaskBarIcon::IsOk}\label{wxtaskbariconisok}
a660d684 61
6af507f7 62\func{bool}{IsOk}{\void}
a660d684 63
cc81d32f 64Returns true if the object initialized successfully.
a660d684 65
feb68562
JS
66\membersection{wxTaskBarIcon::PopupMenu}\label{wxtaskbariconpopupmenu}
67
68\func{bool}{PopupMenu}{\param{wxMenu*}{ menu}}
69
70Pops up a menu at the current mouse position. The events can be handled by
71a class derived from wxTaskBarIcon.
72
a660d684
KB
73\membersection{wxTaskBarIcon::RemoveIcon}\label{wxtaskbariconremoveicon}
74
75\func{bool}{RemoveIcon}{\void}
76
77Removes the icon previously set with \helpref{SetIcon}{wxtaskbariconseticon}.
78
79\membersection{wxTaskBarIcon::SetIcon}\label{wxtaskbariconseticon}
80
81\func{bool}{SetIcon}{\param{const wxIcon\&}{ icon}, \param{const wxString\& }{tooltip}}
82
83Sets the icon, and optional tooltip text.
84
85