]>
git.saurik.com Git - wxWidgets.git/blob - src/stubs/combobox.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxComboBox class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "combobox.h"
16 #include "wx/combobox.h"
18 IMPLEMENT_DYNAMIC_CLASS(wxComboBox
, wxControl
)
20 bool wxComboBox::Create(wxWindow
*parent
, wxWindowID id
,
21 const wxString
& value
,
24 int n
, const wxString choices
[],
26 const wxValidator
& validator
,
30 SetValidator(validator
);
32 m_windowStyle
= style
;
34 if (parent
) parent
->AddChild(this);
37 m_windowId
= (int)NewControlId();
41 // TODO: create combobox control
46 wxString
wxComboBox::GetValue() const
52 void wxComboBox::SetValue(const wxString
& value
)
57 // Clipboard operations
58 void wxComboBox::Copy()
63 void wxComboBox::Cut()
68 void wxComboBox::Paste()
73 void wxComboBox::SetEditable(bool editable
)
78 void wxComboBox::SetInsertionPoint(long pos
)
83 void wxComboBox::SetInsertionPointEnd()
88 long wxComboBox::GetInsertionPoint() const
94 long wxComboBox::GetLastPosition() const
100 void wxComboBox::Replace(long from
, long to
, const wxString
& value
)
105 void wxComboBox::Remove(long from
, long to
)
110 void wxComboBox::SetSelection(long from
, long to
)
115 void wxComboBox::Append(const wxString
& item
)
120 void wxComboBox::Delete(int n
)
125 void wxComboBox::Clear()
130 int wxComboBox::GetSelection() const
136 void wxComboBox::SetSelection(int n
)
141 int wxComboBox::FindString(const wxString
& s
) const
147 wxString
wxComboBox::GetString(int n
) const
153 wxString
wxComboBox::GetStringSelection() const
159 bool wxComboBox::SetStringSelection(const wxString
& sel
)