]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/tooltip.cpp
Hopefully fixed library names generated by wx-config for OS/2's PM port.
[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 // ---------------------------------------------------------------------------
103 // implementation helpers
104 // ---------------------------------------------------------------------------
105
106 // create the tooltip ctrl for our parent frame if it doesn't exist yet
107 WXHWND wxToolTip::GetToolTipCtrl()
108 {
109 return (WXHWND) 0;
110 }
111
112 void wxToolTip::RelayEvent(WXMSG *msg)
113 {
114 }
115
116 // ----------------------------------------------------------------------------
117 // ctor & dtor
118 // ----------------------------------------------------------------------------
119
120 IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
121
122 wxToolTip::wxToolTip(const wxString &tip)
123 : m_text(tip)
124 {
125 }
126
127 wxToolTip::~wxToolTip()
128 {
129 }
130
131 // ----------------------------------------------------------------------------
132 // others
133 // ----------------------------------------------------------------------------
134
135 void wxToolTip::Remove()
136 {
137 }
138
139 void wxToolTip::Add(WXHWND hWnd)
140 {
141 }
142
143 void wxToolTip::SetWindow(wxWindow *win)
144 {
145 }
146
147 void wxToolTip::SetTip(const wxString& tip)
148 {
149 }
150
151 #endif // wxUSE_TOOLTIPS