]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/tipwin.tex
fix LaTeX error (escape underscores); don't abuse bold face
[wxWidgets.git] / docs / latex / wx / tipwin.tex
CommitLineData
e3c10211
JS
1\section{\class{wxTipWindow}}\label{wxtipwindow}
2
dafbe8c0
VZ
3Shows simple text in a popup tip window on creation. This is used by
4\helpref{wxSimpleHelpProvider}{wxsimplehelpprovider} to show popup help. The
5window automatically destroys itself when the user clicks on it or it loses the
6focus.
e3c10211 7
dafbe8c0
VZ
8You may also use this class to emulate the tooltips when you need finer
9control over them than what the standard tooltips provide.
e3c10211
JS
10
11\wxheading{Derived from}
12
8962e1d9
RD
13wxPopupTransientWindow\\
14wxPopupWindow\\
e3c10211
JS
15\helpref{wxWindow}{wxwindow}\\
16\helpref{wxEvtHandler}{wxevthandler}\\
17\helpref{wxObject}{wxobject}
18
19\wxheading{Include files}
20
21<wx/tipwin.h>
22
a7af285d
VZ
23\wxheading{Library}
24
25\helpref{wxCore}{librarieslist}
26
e3c10211
JS
27\latexignore{\rtfignore{\wxheading{Members}}}
28
2511d959 29
e3c10211
JS
30\membersection{wxTipWindow::wxTipWindow}\label{wxtipwindowwxtipwindow}
31
2511d959 32\func{}{wxTipWindow}{\param{wxWindow* }{parent}, \param{const wxString\& }{text}, \param{wxCoord }{maxLength = 100}, \param{wxTipWindow** }{windowPtr}, \param{wxRect *}{rectBounds = \NULL}}
e3c10211 33
2511d959 34Constructor. The tip is shown immediately after the window is constructed.
e3c10211 35
dafbe8c0 36\wxheading{Parameters}
e3c10211 37
2511d959 38\docparam{parent}{The parent window, must be non-\NULL}
e3c10211 39
dafbe8c0
VZ
40\docparam{text}{The text to show, may contain the new line characters}
41
2511d959
VZ
42\docparam{maxLength}{The length of each line, in pixels. Set to a very large
43value to avoid wrapping lines}
44
dafbe8c0
VZ
45\docparam{windowPtr}{Simply passed to
46\helpref{SetTipWindowPtr}{wxtipwindowsettipwindowptr} below, please see its
47documentation for the description of this parameter}
48
2511d959 49\docparam{rectBounds}{If non-\NULL, passed to
dafbe8c0
VZ
50\helpref{SetBoundingRect}{wxtipwindowsetboundingrect} below, please see its
51documentation for the description of this parameter}
52
53
2511d959 54
dafbe8c0
VZ
55\membersection{wxTipWindow::SetTipWindowPtr}\label{wxtipwindowsettipwindowptr}
56
57\func{void}{SetTipWindowPtr}{\param{wxTipWindow** }{windowPtr}}
58
59When the tip window closes itself (which may happen at any moment and
2511d959
VZ
60unexpectedly to the caller) it may \NULL out the pointer pointed to by
61\arg{it windowPtr}. This is helpful to avoid dereferencing the tip window which
dafbe8c0
VZ
62had been already closed and deleted.
63
64
2511d959 65
e676441f 66\membersection{wxTipWindow::SetBoundingRect}\label{wxtipwindowsetboundingrect}
dafbe8c0
VZ
67
68\func{void}{SetBoundingRect}{\param{const wxRect\& }{rectBound}}
69
70By default, the tip window disappears when the user clicks the mouse or presses
71a keyboard key or if it loses focus in any other way - for example because the
72user switched to another application window.
73
2511d959 74Additionally, if a non-empty \arg{rectBound} is provided, the tip window will
dafbe8c0
VZ
75also automatically close if the mouse leaves this area. This is useful to
76dismiss the tip mouse when the mouse leaves the object it is associated with.
77
78\wxheading{Parameters}
79
80\docparam{rectBound}{The bounding rectangle for the mouse in the screen coordinates}
e3c10211 81