]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/tooltip.h
make wxMouseState accessors const; document this class
[wxWidgets.git] / include / wx / os2 / tooltip.h
CommitLineData
0e320a79
DW
1///////////////////////////////////////////////////////////////////////////////
2// Name: msw/tooltip.h
3// Purpose: wxToolTip class - tooltip control
d90895ac 4// Author: David Webster
0e320a79 5// Modified by:
d90895ac 6// Created: 10/17/99
0e320a79 7// RCS-ID: $Id$
d90895ac 8// Copyright: (c) David Webster
65571936 9// Licence: wxWindows licence
0e320a79
DW
10///////////////////////////////////////////////////////////////////////////////
11
20ceebaa
MW
12#ifndef _WX_OS2_TOOLTIP_H_
13#define _WX_OS2_TOOLTIP_H_
14
0e320a79
DW
15class wxToolTip : public wxObject
16{
17public:
18 // ctor & dtor
05facebb 19 wxToolTip(const wxString &rsTip);
0e320a79
DW
20 virtual ~wxToolTip();
21
05facebb
DW
22 //
23 // Accessors
24 //
25 inline const wxString& GetTip(void) const { return m_sText; }
26 inline wxWindow* GetWindow(void) const { return m_pWindow; }
0e320a79 27
05facebb
DW
28 void SetTip(const wxString& rsTip);
29 inline void SetWindow(wxWindow* pWin) { m_pWindow = pWin; }
0e320a79 30
7cdc9c61
SN
31 // controlling tooltip behaviour: globally change tooltip parameters
32 // enable or disable the tooltips globally
7e1e6965 33 static void Enable(bool WXUNUSED(flag)) {}
7cdc9c61 34 // set the delay after which the tooltip appears
7e1e6965 35 static void SetDelay(long WXUNUSED(milliseconds)) {}
becac1ef
VZ
36 // set the delay after which the tooltip disappears or how long the tooltip remains visible
37 static void SetAutoPop(long WXUNUSED(milliseconds)) {}
38 // set the delay between subsequent tooltips to appear
39 static void SetReshow(long WXUNUSED(milliseconds)) {}
7cdc9c61 40
05facebb
DW
41 //
42 // Implementation
43 //
44 void DisplayToolTipWindow(const wxPoint& rPos);
45 void HideToolTipWindow(void);
0e320a79
DW
46
47private:
05facebb 48 void Create(const wxString &rsTip);
0e320a79 49
05facebb
DW
50 HWND m_hWnd;
51 wxString m_sText; // tooltip text
52 wxWindow* m_pWindow; // window we're associated with
53}; // end of CLASS wxToolTip
20ceebaa
MW
54
55#endif // _WX_OS2_TOOLTIP_H_