]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/tooltip.cpp
use margin width after updating it in OnMeasureItem() (see #10452)
[wxWidgets.git] / src / palmos / tooltip.cpp
CommitLineData
ffecfa5a 1///////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/tooltip.cpp
ffecfa5a 3// Purpose: wxToolTip class implementation for Palm OS
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ffecfa5a
JS
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
52WXHWND wxToolTip::ms_hwndTT = (WXHWND)NULL;
53
54#if wxUSE_TTM_WINDOWFROMPOINT
55
56// the tooltip window proc
57static 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
70inline 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
79static 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
94void wxToolTip::Enable(bool flag)
95{
96}
97
98void wxToolTip::SetDelay(long milliseconds)
99{
100}
101
becac1ef
VZ
102void wxToolTip::SetAutoPop( long WXUNUSED(milliseconds) )
103{
104}
105
106void wxToolTip::SetReshow( long WXUNUSED(milliseconds) )
107{
108}
109
ffecfa5a
JS
110// ---------------------------------------------------------------------------
111// implementation helpers
112// ---------------------------------------------------------------------------
113
114// create the tooltip ctrl for our parent frame if it doesn't exist yet
115WXHWND wxToolTip::GetToolTipCtrl()
116{
117 return (WXHWND) 0;
118}
119
120void wxToolTip::RelayEvent(WXMSG *msg)
121{
122}
123
124// ----------------------------------------------------------------------------
125// ctor & dtor
126// ----------------------------------------------------------------------------
127
128IMPLEMENT_ABSTRACT_CLASS(wxToolTip, wxObject)
129
130wxToolTip::wxToolTip(const wxString &tip)
131 : m_text(tip)
132{
133}
134
135wxToolTip::~wxToolTip()
136{
137}
138
139// ----------------------------------------------------------------------------
140// others
141// ----------------------------------------------------------------------------
142
143void wxToolTip::Remove()
144{
145}
146
147void wxToolTip::Add(WXHWND hWnd)
148{
149}
150
151void wxToolTip::SetWindow(wxWindow *win)
152{
153}
154
155void wxToolTip::SetTip(const wxString& tip)
156{
157}
158
159#endif // wxUSE_TOOLTIPS