]> git.saurik.com Git - wxWidgets.git/blame - src/osx/cocoa/tooltip.mm
The alignment controls are now left-aligned if the floating controls are not shown.
[wxWidgets.git] / src / osx / cocoa / tooltip.mm
CommitLineData
78d99015 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: src/osx/cocoa/tooltip.mm
78d99015
KO
3// Purpose: wxToolTip implementation
4// Author: Stefan Csomor
78d99015
KO
5// Copyright: (c) Stefan Csomor
6// Licence: wxWindows licence
7/////////////////////////////////////////////////////////////////////////////
8
9#include "wx/wxprec.h"
10
11#if wxUSE_TOOLTIPS
12
13#include "wx/tooltip.h"
14
15#ifndef WX_PRECOMP
16 #include "wx/app.h"
17 #include "wx/window.h"
18 #include "wx/dc.h"
19 #include "wx/timer.h"
20 #include "wx/nonownedwnd.h"
21#endif // WX_PRECOMP
22
23#include "wx/geometry.h"
24#include "wx/osx/uma.h"
25
26// FYI a link to help with implementing: http://www.cocoadev.com/index.pl?LittleYellowBox
27
28
29//-----------------------------------------------------------------------------
30// wxToolTip
31//-----------------------------------------------------------------------------
32
33IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
34
35
36wxToolTip::wxToolTip( const wxString &tip )
37{
38 m_text = tip;
d3b9f782 39 m_window = NULL;
78d99015
KO
40}
41
42wxToolTip::~wxToolTip()
43{
44}
45
46void wxToolTip::SetTip( const wxString &tip )
47{
48 m_text = tip;
a7b9865d
KO
49 if (m_window)
50 m_window->SetToolTip(this);
78d99015
KO
51}
52
53void wxToolTip::SetWindow( wxWindow *win )
54{
55 m_window = win ;
56}
57
d8207702 58void wxToolTip::Enable( bool WXUNUSED(flag) )
78d99015
KO
59{
60}
61
d8207702 62void wxToolTip::SetDelay( long WXUNUSED(msecs) )
78d99015
KO
63{
64}
65
66void wxToolTip::SetAutoPop( long WXUNUSED(msecs) )
67{
68}
69
70void wxToolTip::SetReshow( long WXUNUSED(msecs) )
71{
72}
73
d8207702 74void wxToolTip::RelayEvent( wxWindow *WXUNUSED(win) , wxMouseEvent &WXUNUSED(event) )
78d99015
KO
75{
76}
77
78void wxToolTip::RemoveToolTips()
79{
80}
81
82// --- mac specific
d8207702 83void wxToolTip::NotifyWindowDelete( WXHWND WXUNUSED(win) )
78d99015
KO
84{
85}
86
87#endif // wxUSE_TOOLTIPS