]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/combobox.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/combobox.cpp
3 // Purpose: wxComboBox class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
29 #include "wx/combobox.h"
32 #include "wx/settings.h"
34 // for wxEVT_COMMAND_TEXT_ENTER
35 #include "wx/textctrl.h"
39 #include "wx/clipbrd.h"
40 #include "wx/palmos/private.h"
43 #include "wx/tooltip.h"
44 #endif // wxUSE_TOOLTIPS
46 // ----------------------------------------------------------------------------
48 // ----------------------------------------------------------------------------
50 // ----------------------------------------------------------------------------
51 // function prototypes
52 // ----------------------------------------------------------------------------
54 // ---------------------------------------------------------------------------
56 // ---------------------------------------------------------------------------
58 // the pointer to standard radio button wnd proc
59 static WNDPROC gs_wndprocEdit
= (WNDPROC
)NULL
;
61 // ============================================================================
63 // ============================================================================
65 // ----------------------------------------------------------------------------
66 // wxComboBox callbacks
67 // ----------------------------------------------------------------------------
69 WXLRESULT
wxComboBox::MSWWindowProc(WXUINT nMsg
, WXWPARAM wParam
, WXLPARAM lParam
)
74 bool wxComboBox::MSWProcessEditMsg(WXUINT msg
, WXWPARAM wParam
, WXLPARAM lParam
)
79 bool wxComboBox::MSWCommand(WXUINT param
, WXWORD
WXUNUSED(id
))
84 WXHWND
wxComboBox::GetEditHWND() const
89 // ----------------------------------------------------------------------------
90 // wxComboBox creation
91 // ----------------------------------------------------------------------------
93 bool wxComboBox::Create(wxWindow
*parent
, wxWindowID id
,
94 const wxString
& value
,
97 int n
, const wxString choices
[],
99 const wxValidator
& validator
,
100 const wxString
& name
)
105 bool wxComboBox::Create(wxWindow
*parent
, wxWindowID id
,
106 const wxString
& value
,
109 const wxArrayString
& choices
,
111 const wxValidator
& validator
,
112 const wxString
& name
)
117 WXDWORD
wxComboBox::MSWGetStyle(long style
, WXDWORD
*exstyle
) const
122 // ----------------------------------------------------------------------------
123 // wxComboBox text control-like methods
124 // ----------------------------------------------------------------------------
126 void wxComboBox::SetValue(const wxString
& value
)
130 // Clipboard operations
131 void wxComboBox::Copy()
135 void wxComboBox::Cut()
139 void wxComboBox::Paste()
143 void wxComboBox::SetEditable(bool WXUNUSED(editable
))
147 void wxComboBox::SetInsertionPoint(long pos
)
151 void wxComboBox::SetInsertionPointEnd()
155 long wxComboBox::GetInsertionPoint() const
160 wxTextPos
wxComboBox::GetLastPosition() const
165 void wxComboBox::Replace(long from
, long to
, const wxString
& value
)
169 void wxComboBox::Remove(long from
, long to
)
173 void wxComboBox::SetSelection(long from
, long to
)
177 bool wxComboBox::IsEditable() const
182 void wxComboBox::Undo()
186 void wxComboBox::Redo()
190 void wxComboBox::SelectAll()
194 bool wxComboBox::CanCopy() const
199 bool wxComboBox::CanCut() const
204 bool wxComboBox::CanPaste() const
209 bool wxComboBox::CanUndo() const
214 bool wxComboBox::CanRedo() const
220 #endif // wxUSE_COMBOBOX