]> git.saurik.com Git - wxWidgets.git/blame - include/wx/tipwin.h
fixed a design flaw in wxFontMapper that prevented automatic creation of wxConfig...
[wxWidgets.git] / include / wx / tipwin.h
CommitLineData
01fa3fe7
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/tipwin.h
3// Purpose: wxTipWindow is a window like the one typically used for
4// showing the tooltips
5// Author: Vadim Zeitlin
6// Modified by:
7// Created: 10.09.00
8// RCS-ID: $Id$
9// Copyright: (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
10// Licence: wxWindows license
11///////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_TIPWIN_H_
14#define _WX_TIPWIN_H_
15
16#ifdef __GNUG__
17 #pragma interface "tipwin.h"
18#endif
19
20#include "wx/frame.h"
21
22// ----------------------------------------------------------------------------
23// wxTipWindow
24// ----------------------------------------------------------------------------
25
26class WXDLLEXPORT wxTipWindow : public wxFrame
27{
173e8bbf 28 friend class wxTipWindowView;
01fa3fe7 29public:
173e8bbf
JS
30 // Supply windowPtr for it to null the given address
31 // when the window has closed.
01fa3fe7
VZ
32 wxTipWindow(wxWindow *parent,
33 const wxString& text,
173e8bbf
JS
34 wxCoord maxLength = 100, wxTipWindow** windowPtr = NULL);
35 ~wxTipWindow();
36
37 void SetTipWindowPtr(wxTipWindow** windowPtr) { m_windowPtr = windowPtr; }
01fa3fe7
VZ
38
39protected:
40 // event handlers
01fa3fe7 41 void OnMouseClick(wxMouseEvent& event);
129caadd
JS
42 void OnActivate(wxActivateEvent& event);
43 void OnKillFocus(wxFocusEvent& event);
01fa3fe7 44
01fa3fe7
VZ
45private:
46 wxArrayString m_textLines;
47 wxCoord m_heightLine;
173e8bbf 48 wxTipWindow** m_windowPtr;
01fa3fe7
VZ
49
50 DECLARE_EVENT_TABLE()
51};
52
53#endif // _WX_TIPWIN_H_