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