1999-07-29 05:11:30 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/os2/tooltip.h
|
1999-07-29 05:11:30 +00:00
|
|
|
// Purpose: wxToolTip class - tooltip control
|
1999-10-18 03:30:47 +00:00
|
|
|
// Author: David Webster
|
1999-07-29 05:11:30 +00:00
|
|
|
// Modified by:
|
1999-10-18 03:30:47 +00:00
|
|
|
// Created: 10/17/99
|
1999-07-29 05:11:30 +00:00
|
|
|
// RCS-ID: $Id$
|
1999-10-18 03:30:47 +00:00
|
|
|
// Copyright: (c) David Webster
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-07-29 05:11:30 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2005-09-25 20:49:40 +00:00
|
|
|
#ifndef _WX_OS2_TOOLTIP_H_
|
|
|
|
#define _WX_OS2_TOOLTIP_H_
|
|
|
|
|
1999-07-29 05:11:30 +00:00
|
|
|
class wxToolTip : public wxObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// ctor & dtor
|
2002-07-09 22:02:07 +00:00
|
|
|
wxToolTip(const wxString &rsTip);
|
1999-07-29 05:11:30 +00:00
|
|
|
virtual ~wxToolTip();
|
|
|
|
|
2002-07-09 22:02:07 +00:00
|
|
|
//
|
|
|
|
// Accessors
|
|
|
|
//
|
|
|
|
inline const wxString& GetTip(void) const { return m_sText; }
|
|
|
|
inline wxWindow* GetWindow(void) const { return m_pWindow; }
|
1999-07-29 05:11:30 +00:00
|
|
|
|
2002-07-09 22:02:07 +00:00
|
|
|
void SetTip(const wxString& rsTip);
|
|
|
|
inline void SetWindow(wxWindow* pWin) { m_pWindow = pWin; }
|
1999-07-29 05:11:30 +00:00
|
|
|
|
2003-10-03 16:58:17 +00:00
|
|
|
// controlling tooltip behaviour: globally change tooltip parameters
|
|
|
|
// enable or disable the tooltips globally
|
2005-07-21 17:18:43 +00:00
|
|
|
static void Enable(bool WXUNUSED(flag)) {}
|
2003-10-03 16:58:17 +00:00
|
|
|
// set the delay after which the tooltip appears
|
2005-07-21 17:18:43 +00:00
|
|
|
static void SetDelay(long WXUNUSED(milliseconds)) {}
|
2007-08-15 12:57:36 +00:00
|
|
|
// set the delay after which the tooltip disappears or how long the tooltip remains visible
|
|
|
|
static void SetAutoPop(long WXUNUSED(milliseconds)) {}
|
|
|
|
// set the delay between subsequent tooltips to appear
|
|
|
|
static void SetReshow(long WXUNUSED(milliseconds)) {}
|
2003-10-03 16:58:17 +00:00
|
|
|
|
2002-07-09 22:02:07 +00:00
|
|
|
//
|
|
|
|
// Implementation
|
|
|
|
//
|
|
|
|
void DisplayToolTipWindow(const wxPoint& rPos);
|
|
|
|
void HideToolTipWindow(void);
|
1999-07-29 05:11:30 +00:00
|
|
|
|
|
|
|
private:
|
2002-07-09 22:02:07 +00:00
|
|
|
void Create(const wxString &rsTip);
|
1999-07-29 05:11:30 +00:00
|
|
|
|
2002-07-09 22:02:07 +00:00
|
|
|
HWND m_hWnd;
|
|
|
|
wxString m_sText; // tooltip text
|
|
|
|
wxWindow* m_pWindow; // window we're associated with
|
|
|
|
}; // end of CLASS wxToolTip
|
2005-09-25 20:49:40 +00:00
|
|
|
|
|
|
|
#endif // _WX_OS2_TOOLTIP_H_
|