]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/tooltip.cpp
compile fix
[wxWidgets.git] / src / palmos / tooltip.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/tooltip.cpp
3 // Purpose: wxToolTip class implementation for Palm OS
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 // ============================================================================
13 // declarations
14 // ============================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 #include "wx/wxprec.h"
21
22 #ifdef __BORLANDC__
23 #pragma hdrstop
24 #endif
25
26 #ifndef WX_PRECOMP
27 #include "wx/wx.h"
28 #endif
29
30 #if wxUSE_TOOLTIPS
31
32 #include "wx/tooltip.h"
33 #include "wx/palmos/private.h"
34
35 #include "wx/palmos/wrapcctl.h"
36
37 // VZ: normally, the trick with subclassing the tooltip control and processing
38 // TTM_WINDOWFROMPOINT should work but, somehow, it doesn't. I leave the
39 // code here for now (but it's not compiled) in case we need it later.
40 //
41 // For now I use an ugly workaround and process TTN_NEEDTEXT directly in
42 // radio button wnd proc - fixing TTM_WINDOWFROMPOINT code would be nice
43 // because it would then work for all controls, not only radioboxes but for
44 // now I don't understand what's wrong with it...
45 #define wxUSE_TTM_WINDOWFROMPOINT 0
46
47 // ----------------------------------------------------------------------------
48 // global variables
49 // ----------------------------------------------------------------------------
50
51 // the tooltip parent window
52 WXHWND wxToolTip::ms_hwndTT = (WXHWND)NULL;
53
54 #if wxUSE_TTM_WINDOWFROMPOINT
55
56 // the tooltip window proc
57 static WNDPROC gs_wndprocToolTip = (WNDPROC)NULL;
58
59 #endif // wxUSE_TTM_WINDOWFROMPOINT
60
61 // ----------------------------------------------------------------------------
62 // private classes
63 // ----------------------------------------------------------------------------
64
65 // ----------------------------------------------------------------------------
66 // private functions
67 // ----------------------------------------------------------------------------
68
69 // send a message to the tooltip control
70 inline LRESULT SendTooltipMessage(WXHWND hwnd,
71 UINT msg,
72 WPARAM wParam,
73 void *lParam)
74 {
75 return 0;
76 }
77
78 // send a message to all existing tooltip controls
79 static void SendTooltipMessageToAll(WXHWND hwnd,
80 UINT msg,
81 WPARAM wParam,
82 LPARAM lParam)
83 {
84 }
85
86 // ============================================================================
87 // implementation
88 // ============================================================================
89
90 // ----------------------------------------------------------------------------
91 // static functions
92 // ----------------------------------------------------------------------------
93
94 void wxToolTip::Enable(bool flag)
95 {
96 }
97
98 void wxToolTip::SetDelay(long milliseconds)
99 {
100 }
101
102 void wxToolTip::SetAutoPop( long WXUNUSED(milliseconds) )
103 {
104 }
105
106 void wxToolTip::SetReshow( long WXUNUSED(milliseconds) )
107 {
108 }
109
110 // ---------------------------------------------------------------------------
111 // implementation helpers
112 // ---------------------------------------------------------------------------
113
114 // create the tooltip ctrl for our parent frame if it doesn't exist yet
115 WXHWND wxToolTip::GetToolTipCtrl()
116 {
117 return (WXHWND) 0;
118 }
119
120 void wxToolTip::RelayEvent(WXMSG *msg)
121 {
122 }
123
124 // ----------------------------------------------------------------------------
125 // ctor & dtor
126 // ----------------------------------------------------------------------------
127
128 IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
129
130 wxToolTip::wxToolTip(const wxString &tip)
131 : m_text(tip)
132 {
133 }
134
135 wxToolTip::~wxToolTip()
136 {
137 }
138
139 // ----------------------------------------------------------------------------
140 // others
141 // ----------------------------------------------------------------------------
142
143 void wxToolTip::Remove()
144 {
145 }
146
147 void wxToolTip::Add(WXHWND hWnd)
148 {
149 }
150
151 void wxToolTip::SetWindow(wxWindow *win)
152 {
153 }
154
155 void wxToolTip::SetTip(const wxString& tip)
156 {
157 }
158
159 #endif // wxUSE_TOOLTIPS