]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/combobox.cpp
Fixed wxMessageBox with only an OK button returning wxCANCEL under MSW.
[wxWidgets.git] / src / palmos / combobox.cpp
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e2731512 2// Name: src/palmos/combobox.cpp
ffecfa5a 3// Purpose: wxComboBox class
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
ffecfa5a
JS
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
c64755ed
WS
29#include "wx/combobox.h"
30
ffecfa5a
JS
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"
c64755ed 36 #include "wx/brush.h"
ffecfa5a
JS
37#endif
38
ffecfa5a
JS
39#include "wx/clipbrd.h"
40#include "wx/palmos/private.h"
41
42#if wxUSE_TOOLTIPS
ffecfa5a
JS
43 #include "wx/tooltip.h"
44#endif // wxUSE_TOOLTIPS
45
46// ----------------------------------------------------------------------------
47// wxWin macros
48// ----------------------------------------------------------------------------
49
ffecfa5a
JS
50// ----------------------------------------------------------------------------
51// function prototypes
52// ----------------------------------------------------------------------------
53
54// ---------------------------------------------------------------------------
55// global vars
56// ---------------------------------------------------------------------------
57
58// the pointer to standard radio button wnd proc
59static WNDPROC gs_wndprocEdit = (WNDPROC)NULL;
60
61// ============================================================================
62// implementation
63// ============================================================================
64
ffecfa5a
JS
65// ----------------------------------------------------------------------------
66// wxComboBox callbacks
67// ----------------------------------------------------------------------------
68
69WXLRESULT wxComboBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
70{
71 return 0;
72}
73
74bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
75{
76 return false;
77}
78
79bool wxComboBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
80{
81 return false;
82}
83
84WXHWND wxComboBox::GetEditHWND() const
85{
86 return (WXHWND)0;
87}
88
89// ----------------------------------------------------------------------------
90// wxComboBox creation
91// ----------------------------------------------------------------------------
92
93bool 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
105bool 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
117WXDWORD wxComboBox::MSWGetStyle(long style, WXDWORD *exstyle) const
118{
119 return 0;
120}
121
122// ----------------------------------------------------------------------------
123// wxComboBox text control-like methods
124// ----------------------------------------------------------------------------
125
126void wxComboBox::SetValue(const wxString& value)
127{
128}
129
130// Clipboard operations
131void wxComboBox::Copy()
132{
133}
134
135void wxComboBox::Cut()
136{
137}
138
139void wxComboBox::Paste()
140{
141}
142
143void wxComboBox::SetEditable(bool WXUNUSED(editable))
144{
145}
146
147void wxComboBox::SetInsertionPoint(long pos)
148{
149}
150
151void wxComboBox::SetInsertionPointEnd()
152{
153}
154
155long wxComboBox::GetInsertionPoint() const
156{
157 return 0;
158}
159
7d8268a1 160wxTextPos wxComboBox::GetLastPosition() const
ffecfa5a
JS
161{
162 return 0;
163}
164
165void wxComboBox::Replace(long from, long to, const wxString& value)
166{
167}
168
169void wxComboBox::Remove(long from, long to)
170{
171}
172
173void wxComboBox::SetSelection(long from, long to)
174{
175}
176
150e31d2
JS
177bool wxComboBox::IsEditable() const
178{
7d8268a1 179 return false;
150e31d2
JS
180}
181
182void wxComboBox::Undo()
183{
184}
185
186void wxComboBox::Redo()
187{
188}
189
190void wxComboBox::SelectAll()
191{
192}
193
194bool wxComboBox::CanCopy() const
195{
7d8268a1 196 return false;
150e31d2
JS
197}
198
199bool wxComboBox::CanCut() const
200{
7d8268a1 201 return false;
150e31d2
JS
202}
203
204bool wxComboBox::CanPaste() const
205{
7d8268a1 206 return false;
150e31d2
JS
207}
208
209bool wxComboBox::CanUndo() const
210{
7d8268a1 211 return false;
150e31d2
JS
212}
213
214bool wxComboBox::CanRedo() const
215{
7d8268a1 216 return false;
150e31d2
JS
217}
218
219
ffecfa5a 220#endif // wxUSE_COMBOBOX