]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: _combobox.i | |
3 | // Purpose: SWIG interface defs for wxComboBox | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 10-June-1998 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 2003 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | // Not a %module | |
14 | ||
15 | ||
16 | //--------------------------------------------------------------------------- | |
17 | ||
18 | %{ | |
19 | DECLARE_DEF_STRING(ComboBoxNameStr); | |
20 | %} | |
21 | ||
22 | //--------------------------------------------------------------------------- | |
23 | %newgroup; | |
24 | ||
25 | ||
26 | #ifdef __WXMSW__ | |
27 | class wxComboBox : public wxChoice | |
28 | #else | |
29 | class wxComboBox : public wxControl, public wxItemContainer | |
30 | #endif | |
31 | { | |
32 | public: | |
33 | %addtofunc wxComboBox "self._setOORInfo(self)" | |
34 | %addtofunc wxComboBox() "" | |
35 | ||
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, | |
41 | long style = 0, | |
42 | const wxValidator& validator = wxDefaultValidator, | |
43 | const wxString& name = wxPyComboBoxNameStr); | |
44 | %name(PreComboBox)wxComboBox(); | |
45 | ||
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, | |
51 | long style = 0, | |
52 | const wxValidator& validator = wxDefaultValidator, | |
53 | const wxString& name = wxPyComboBoxNameStr); | |
54 | ||
55 | ||
56 | virtual wxString GetValue() const; | |
57 | virtual void SetValue(const wxString& value); | |
58 | ||
59 | virtual void Copy(); | |
60 | virtual void Cut(); | |
61 | virtual void Paste(); | |
62 | ||
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 | %name(SetMark) virtual void SetSelection(long from, long to); | |
68 | virtual void SetEditable(bool editable); | |
69 | ||
70 | virtual void SetInsertionPointEnd(); | |
71 | virtual void Remove(long from, long to); | |
72 | }; | |
73 | ||
74 | //--------------------------------------------------------------------------- |