]> git.saurik.com Git - wxWidgets.git/blame - interface/editlbox.h
mac paths updated
[wxWidgets.git] / interface / editlbox.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: editlbox.h
e54c96f1 3// Purpose: interface of wxEditableListBox
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxEditableListBox
11 @wxheader{editlbox.h}
7c913512 12
1f1d2182
FM
13 An editable listbox is composite control that lets the user easily enter,
14 delete and reorder a list of strings.
7c913512 15
23324ae1 16 @beginStyleTable
8c6791e4 17 @style{wxEL_ALLOW_NEW}
23324ae1 18 Allows the user to enter new strings.
8c6791e4 19 @style{wxEL_ALLOW_EDIT}
23324ae1 20 Allows the user to edit existing strings.
8c6791e4 21 @style{wxEL_ALLOW_DELETE}
23324ae1 22 Allows the user to delete existing strings.
8c6791e4 23 @style{wxEL_NO_REORDER}
23324ae1 24 Does not allow the user to reorder the strings.
8c6791e4 25 @style{wxEL_DEFAULT_STYLE}
1f1d2182 26 Default style: wxEL_ALLOW_NEW|wxEL_ALLOW_EDIT|wxEL_ALLOW_DELETE.
23324ae1 27 @endStyleTable
7c913512 28
23324ae1 29 @library{wxadv}
1f1d2182 30 @category{ctrl}
7c913512 31
e54c96f1 32 @see wxListBox
23324ae1
FM
33*/
34class wxEditableListBox : public wxPanel
35{
36public:
1f1d2182
FM
37 /**
38 Default ctor.
39 */
40 wxEditableListBox();
41
23324ae1
FM
42 /**
43 Constructor, creating and showing a list box.
3c4f71cc 44
7c913512 45 @param parent
4cc4bfaf 46 Parent window. Must not be @NULL.
7c913512 47 @param id
4cc4bfaf 48 Window identifier. The value wxID_ANY indicates a default value.
7c913512 49 @param label
4cc4bfaf 50 The text shown just before the list control.
7c913512 51 @param pos
4cc4bfaf 52 Window position.
7c913512 53 @param size
1f1d2182 54 Window size. If wxDefaultSize is specified then the window is sized
4cc4bfaf 55 appropriately.
7c913512 56 @param style
4cc4bfaf 57 Window style. See wxEditableListBox.
7c913512 58 @param name
4cc4bfaf 59 Window name.
3c4f71cc 60
4cc4bfaf 61 @see Create()
23324ae1 62 */
7c913512
FM
63 wxEditableListBox(wxWindow* parent, wxWindowID id,
64 const wxString& label,
65 const wxPoint& pos = wxDefaultPosition,
66 const wxSize& size = wxDefaultSize,
67 long style = wxEL_DEFAULT_STYLE,
68 const wxString& name = "editableListBox");
23324ae1
FM
69
70 /**
71 Destructor, destroying the list box.
72 */
73 ~wxEditableListBox();
74
75 /**
1f1d2182
FM
76 Creates the editable listbox for two-step construction.
77 See wxEditableListBox() for further details.
23324ae1
FM
78 */
79 bool Create(wxWindow* parent, wxWindowID id,
80 const wxString& label,
81 const wxPoint& pos = wxDefaultPosition,
82 const wxSize& size = wxDefaultSize,
83 long style = wxEL_DEFAULT_STYLE,
84 const wxString& name = "editableListBox");
85
86 /**
87 Replaces current contents with given strings.
88 */
89 void SetStrings(const wxArrayString& strings);
1f1d2182
FM
90
91
92 /**
93 Returns in the given array the current contents of the control
94 (the array will be erased before control's contents are appended).
95 */
96 void GetSelections(wxArrayString& strings) const;
23324ae1 97};
e54c96f1 98