1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxComboBox
7 // Created: 10-June-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
19 DECLARE_DEF_STRING(ComboBoxNameStr);
22 //---------------------------------------------------------------------------
27 class wxComboBox : public wxChoice
29 class wxComboBox : public wxControl, public wxItemContainer
33 %addtofunc wxComboBox "self._setOORInfo(self)"
34 %addtofunc wxComboBox() ""
36 wxComboBox(wxWindow* parent, wxWindowID id,
37 const wxString& value = wxPyEmptyString,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 int choices=0, wxString* choices_array=NULL,
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxPyComboBoxNameStr);
44 %name(PreComboBox)wxComboBox();
46 bool Create(wxWindow* parent, wxWindowID id,
47 const wxString& value = wxPyEmptyString,
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize,
50 int choices=0, wxString* choices_array=NULL,
52 const wxValidator& validator = wxDefaultValidator,
53 const wxString& name = wxPyComboBoxNameStr);
56 virtual wxString GetValue() const;
57 virtual void SetValue(const wxString& value);
63 virtual void SetInsertionPoint(long pos);
64 virtual long GetInsertionPoint() const;
65 virtual long GetLastPosition() const;
66 virtual void Replace(long from, long to, const wxString& value);
67 void SetSelection(int n);
68 %name(SetMark) virtual void SetSelection(long from, long to);
69 virtual void SetEditable(bool editable);
71 virtual void SetInsertionPointEnd();
72 virtual void Remove(long from, long to);
75 //---------------------------------------------------------------------------