]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_choice.i
Fixes for later WinCE versions
[wxWidgets.git] / wxPython / src / _choice.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _choice.i
3 // Purpose: SWIG interface defs for wxChoice
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(ChoiceNameStr);
20 %}
21
22 //---------------------------------------------------------------------------
23 %newgroup;
24
25 class wxChoice : public wxControlWithItems
26 {
27 public:
28 %addtofunc wxChoice "self._setOORInfo(self)"
29 %addtofunc wxChoice() ""
30
31 wxChoice(wxWindow *parent, wxWindowID id,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 int choices=0, wxString* choices_array=NULL,
35 long style = 0,
36 const wxValidator& validator = wxDefaultValidator,
37 const wxString& name = wxPyChoiceNameStr);
38 %name(PreChoice)wxChoice();
39
40 bool Create(wxWindow *parent, wxWindowID id,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
43 int choices=0, wxString* choices_array=NULL,
44 long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxPyChoiceNameStr);
47
48 int GetColumns();
49 void SetColumns(const int n = 1);
50 void SetSelection(const int n);
51 void SetStringSelection(const wxString& string);
52 void SetString(int n, const wxString& s);
53
54 %pragma(python) addtoclass = "
55 Select = SetSelection
56 "
57 };
58
59 //---------------------------------------------------------------------------