]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/combobox.cpp
in DoSetSize, only call GetPosition if necessary
[wxWidgets.git] / src / palmos / combobox.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/combobox.cpp
3 // Purpose: wxComboBox class
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 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #if wxUSE_COMBOBOX
28
29 #include "wx/combobox.h"
30
31 #ifndef WX_PRECOMP
32 #include "wx/settings.h"
33 #include "wx/log.h"
34 // for wxEVT_COMMAND_TEXT_ENTER
35 #include "wx/textctrl.h"
36 #include "wx/brush.h"
37 #endif
38
39 #include "wx/clipbrd.h"
40 #include "wx/palmos/private.h"
41
42 #if wxUSE_TOOLTIPS
43 #include "wx/tooltip.h"
44 #endif // wxUSE_TOOLTIPS
45
46 // ----------------------------------------------------------------------------
47 // wxWin macros
48 // ----------------------------------------------------------------------------
49
50 // ----------------------------------------------------------------------------
51 // function prototypes
52 // ----------------------------------------------------------------------------
53
54 // ---------------------------------------------------------------------------
55 // global vars
56 // ---------------------------------------------------------------------------
57
58 // the pointer to standard radio button wnd proc
59 static WNDPROC gs_wndprocEdit = (WNDPROC)NULL;
60
61 // ============================================================================
62 // implementation
63 // ============================================================================
64
65 // ----------------------------------------------------------------------------
66 // wxComboBox callbacks
67 // ----------------------------------------------------------------------------
68
69 WXLRESULT wxComboBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
70 {
71 return 0;
72 }
73
74 bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
75 {
76 return false;
77 }
78
79 bool wxComboBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
80 {
81 return false;
82 }
83
84 WXHWND wxComboBox::GetEditHWND() const
85 {
86 return (WXHWND)0;
87 }
88
89 // ----------------------------------------------------------------------------
90 // wxComboBox creation
91 // ----------------------------------------------------------------------------
92
93 bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
94 const wxString& value,
95 const wxPoint& pos,
96 const wxSize& size,
97 int n, const wxString choices[],
98 long style,
99 const wxValidator& validator,
100 const wxString& name)
101 {
102 return false;
103 }
104
105 bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
106 const wxString& value,
107 const wxPoint& pos,
108 const wxSize& size,
109 const wxArrayString& choices,
110 long style,
111 const wxValidator& validator,
112 const wxString& name)
113 {
114 return false;
115 }
116
117 WXDWORD wxComboBox::MSWGetStyle(long style, WXDWORD *exstyle) const
118 {
119 return 0;
120 }
121
122 // ----------------------------------------------------------------------------
123 // wxComboBox text control-like methods
124 // ----------------------------------------------------------------------------
125
126 void wxComboBox::SetValue(const wxString& value)
127 {
128 }
129
130 // Clipboard operations
131 void wxComboBox::Copy()
132 {
133 }
134
135 void wxComboBox::Cut()
136 {
137 }
138
139 void wxComboBox::Paste()
140 {
141 }
142
143 void wxComboBox::SetEditable(bool WXUNUSED(editable))
144 {
145 }
146
147 void wxComboBox::SetInsertionPoint(long pos)
148 {
149 }
150
151 void wxComboBox::SetInsertionPointEnd()
152 {
153 }
154
155 long wxComboBox::GetInsertionPoint() const
156 {
157 return 0;
158 }
159
160 wxTextPos wxComboBox::GetLastPosition() const
161 {
162 return 0;
163 }
164
165 void wxComboBox::Replace(long from, long to, const wxString& value)
166 {
167 }
168
169 void wxComboBox::Remove(long from, long to)
170 {
171 }
172
173 void wxComboBox::SetSelection(long from, long to)
174 {
175 }
176
177 bool wxComboBox::IsEditable() const
178 {
179 return false;
180 }
181
182 void wxComboBox::Undo()
183 {
184 }
185
186 void wxComboBox::Redo()
187 {
188 }
189
190 void wxComboBox::SelectAll()
191 {
192 }
193
194 bool wxComboBox::CanCopy() const
195 {
196 return false;
197 }
198
199 bool wxComboBox::CanCut() const
200 {
201 return false;
202 }
203
204 bool wxComboBox::CanPaste() const
205 {
206 return false;
207 }
208
209 bool wxComboBox::CanUndo() const
210 {
211 return false;
212 }
213
214 bool wxComboBox::CanRedo() const
215 {
216 return false;
217 }
218
219
220 #endif // wxUSE_COMBOBOX