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