]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/tipwin.h
Remove never implemented wxDateTime::IsGregorianDate().
[wxWidgets.git] / interface / wx / tipwin.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: tipwin.h
e54c96f1 3// Purpose: interface of wxTipWindow
23324ae1 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
23324ae1
FM
6/////////////////////////////////////////////////////////////////////////////
7
8/**
9 @class wxTipWindow
7c913512 10
78e87bf7
FM
11 Shows simple text in a popup tip window on creation.
12 This is used by wxSimpleHelpProvider to show popup help.
13 The window automatically destroys itself when the user clicks on it or it
14 loses the focus.
7c913512 15
23324ae1
FM
16 You may also use this class to emulate the tooltips when you need finer
17 control over them than what the standard tooltips provide.
7c913512 18
23324ae1
FM
19 @library{wxcore}
20 @category{managedwnd}
21*/
22class wxTipWindow : public wxWindow
23{
24public:
25 /**
26 Constructor. The tip is shown immediately after the window is constructed.
3c4f71cc 27
7c913512 28 @param parent
4cc4bfaf 29 The parent window, must be non-@NULL
7c913512 30 @param text
4cc4bfaf 31 The text to show, may contain the new line characters
7c913512 32 @param maxLength
4cc4bfaf
FM
33 The length of each line, in pixels. Set to a very large
34 value to avoid wrapping lines
7c913512 35 @param windowPtr
78e87bf7 36 Simply passed to SetTipWindowPtr() below, please see its
4cc4bfaf 37 documentation for the description of this parameter
7c913512 38 @param rectBounds
78e87bf7 39 If non-@NULL, passed to SetBoundingRect() below, please see its
4cc4bfaf 40 documentation for the description of this parameter
23324ae1
FM
41 */
42 wxTipWindow(wxWindow* parent, const wxString& text,
43 wxCoord maxLength = 100,
a6052817 44 wxTipWindow** windowPtr = NULL,
4cc4bfaf 45 wxRect* rectBounds = NULL);
23324ae1
FM
46
47 /**
48 By default, the tip window disappears when the user clicks the mouse or presses
49 a keyboard key or if it loses focus in any other way - for example because the
50 user switched to another application window.
78e87bf7 51
4cc4bfaf 52 Additionally, if a non-empty @a rectBound is provided, the tip window will
23324ae1
FM
53 also automatically close if the mouse leaves this area. This is useful to
54 dismiss the tip mouse when the mouse leaves the object it is associated with.
3c4f71cc 55
7c913512 56 @param rectBound
4cc4bfaf 57 The bounding rectangle for the mouse in the screen coordinates
23324ae1
FM
58 */
59 void SetBoundingRect(const wxRect& rectBound);
60
61 /**
62 When the tip window closes itself (which may happen at any moment and
7c913512 63 unexpectedly to the caller) it may @NULL out the pointer pointed to by
78e87bf7 64 @a windowPtr. This is helpful to avoid dereferencing the tip window which
23324ae1
FM
65 had been already closed and deleted.
66 */
67 void SetTipWindowPtr(wxTipWindow** windowPtr);
68};
e54c96f1 69