2000-10-09 10:31:03 -04:00
|
|
|
\section{\class{wxTipWindow}}\label{wxtipwindow}
|
|
|
|
|
2002-01-19 16:49:39 -05:00
|
|
|
Shows simple text in a popup tip window on creation. This is used by
|
|
|
|
\helpref{wxSimpleHelpProvider}{wxsimplehelpprovider} to show popup help. The
|
|
|
|
window automatically destroys itself when the user clicks on it or it loses the
|
|
|
|
focus.
|
2000-10-09 10:31:03 -04:00
|
|
|
|
2002-01-19 16:49:39 -05:00
|
|
|
You may also use this class to emulate the tooltips when you need finer
|
|
|
|
control over them than what the standard tooltips provide.
|
2000-10-09 10:31:03 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
2001-11-30 18:02:27 -05:00
|
|
|
wxPopupTransientWindow\\
|
|
|
|
wxPopupWindow\\
|
2000-10-09 10:31:03 -04:00
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/tipwin.h>
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2006-08-28 06:05:23 -04:00
|
|
|
|
2000-10-09 10:31:03 -04:00
|
|
|
\membersection{wxTipWindow::wxTipWindow}\label{wxtipwindowwxtipwindow}
|
|
|
|
|
2006-08-28 06:05:23 -04:00
|
|
|
\func{}{wxTipWindow}{\param{wxWindow* }{parent}, \param{const wxString\& }{text}, \param{wxCoord }{maxLength = 100}, \param{wxTipWindow** }{windowPtr}, \param{wxRect *}{rectBounds = \NULL}}
|
2000-10-09 10:31:03 -04:00
|
|
|
|
2006-08-28 06:05:23 -04:00
|
|
|
Constructor. The tip is shown immediately after the window is constructed.
|
2000-10-09 10:31:03 -04:00
|
|
|
|
2002-01-19 16:49:39 -05:00
|
|
|
\wxheading{Parameters}
|
2000-10-09 10:31:03 -04:00
|
|
|
|
2006-08-28 06:05:23 -04:00
|
|
|
\docparam{parent}{The parent window, must be non-\NULL}
|
2000-10-09 10:31:03 -04:00
|
|
|
|
2002-01-19 16:49:39 -05:00
|
|
|
\docparam{text}{The text to show, may contain the new line characters}
|
|
|
|
|
2006-08-28 06:05:23 -04:00
|
|
|
\docparam{maxLength}{The length of each line, in pixels. Set to a very large
|
|
|
|
value to avoid wrapping lines}
|
|
|
|
|
2002-01-19 16:49:39 -05:00
|
|
|
\docparam{windowPtr}{Simply passed to
|
|
|
|
\helpref{SetTipWindowPtr}{wxtipwindowsettipwindowptr} below, please see its
|
|
|
|
documentation for the description of this parameter}
|
|
|
|
|
2006-08-28 06:05:23 -04:00
|
|
|
\docparam{rectBounds}{If non-\NULL, passed to
|
2002-01-19 16:49:39 -05:00
|
|
|
\helpref{SetBoundingRect}{wxtipwindowsetboundingrect} below, please see its
|
|
|
|
documentation for the description of this parameter}
|
|
|
|
|
|
|
|
|
2006-08-28 06:05:23 -04:00
|
|
|
|
2002-01-19 16:49:39 -05:00
|
|
|
\membersection{wxTipWindow::SetTipWindowPtr}\label{wxtipwindowsettipwindowptr}
|
|
|
|
|
|
|
|
\func{void}{SetTipWindowPtr}{\param{wxTipWindow** }{windowPtr}}
|
|
|
|
|
|
|
|
When the tip window closes itself (which may happen at any moment and
|
2006-08-28 06:05:23 -04:00
|
|
|
unexpectedly to the caller) it may \NULL out the pointer pointed to by
|
|
|
|
\arg{it windowPtr}. This is helpful to avoid dereferencing the tip window which
|
2002-01-19 16:49:39 -05:00
|
|
|
had been already closed and deleted.
|
|
|
|
|
|
|
|
|
2006-08-28 06:05:23 -04:00
|
|
|
|
2002-01-29 16:31:16 -05:00
|
|
|
\membersection{wxTipWindow::SetBoundingRect}\label{wxtipwindowsetboundingrect}
|
2002-01-19 16:49:39 -05:00
|
|
|
|
|
|
|
\func{void}{SetBoundingRect}{\param{const wxRect\& }{rectBound}}
|
|
|
|
|
|
|
|
By default, the tip window disappears when the user clicks the mouse or presses
|
|
|
|
a keyboard key or if it loses focus in any other way - for example because the
|
|
|
|
user switched to another application window.
|
|
|
|
|
2006-08-28 06:05:23 -04:00
|
|
|
Additionally, if a non-empty \arg{rectBound} is provided, the tip window will
|
2002-01-19 16:49:39 -05:00
|
|
|
also automatically close if the mouse leaves this area. This is useful to
|
|
|
|
dismiss the tip mouse when the mouse leaves the object it is associated with.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{rectBound}{The bounding rectangle for the mouse in the screen coordinates}
|
2000-10-09 10:31:03 -04:00
|
|
|
|