]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/tooltip.h
compatibility fix: have wxListKey ctors from C strings so that passing string literal...
[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)) {}
7cdc9c61 36
05facebb
DW
37 //
38 // Implementation
39 //
40 void DisplayToolTipWindow(const wxPoint& rPos);
41 void HideToolTipWindow(void);
0e320a79
DW
42
43private:
05facebb 44 void Create(const wxString &rsTip);
0e320a79 45
05facebb
DW
46 HWND m_hWnd;
47 wxString m_sText; // tooltip text
48 wxWindow* m_pWindow; // window we're associated with
49}; // end of CLASS wxToolTip
20ceebaa
MW
50
51#endif // _WX_OS2_TOOLTIP_H_