]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/editlbox.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxEditableListBox
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxEditableListBox
12 An editable listbox is composite control that lets the user easily enter,
13 delete and reorder a list of strings.
16 @style{wxEL_ALLOW_NEW}
17 Allows the user to enter new strings.
18 @style{wxEL_ALLOW_EDIT}
19 Allows the user to edit existing strings.
20 @style{wxEL_ALLOW_DELETE}
21 Allows the user to delete existing strings.
22 @style{wxEL_NO_REORDER}
23 Does not allow the user to reorder the strings.
24 @style{wxEL_DEFAULT_STYLE}
25 Default style: wxEL_ALLOW_NEW|wxEL_ALLOW_EDIT|wxEL_ALLOW_DELETE.
28 The control uses a wxListCtrl internally and emit its events.
33 @see wxListBox, wxListCtrl
35 class wxEditableListBox
: public wxPanel
44 Constructor, creating and showing a list box.
47 Parent window. Must not be @NULL.
49 Window identifier. The value wxID_ANY indicates a default value.
51 The text shown just before the list control.
55 Window size. If wxDefaultSize is specified then the window is sized
58 Window style. See wxEditableListBox.
64 wxEditableListBox(wxWindow
* parent
, wxWindowID id
,
65 const wxString
& label
,
66 const wxPoint
& pos
= wxDefaultPosition
,
67 const wxSize
& size
= wxDefaultSize
,
68 long style
= wxEL_DEFAULT_STYLE
,
69 const wxString
& name
= wxEditableListBoxNameStr
);
72 Destructor, destroying the list box.
74 virtual ~wxEditableListBox();
77 Creates the editable listbox for two-step construction.
78 See wxEditableListBox() for further details.
80 bool Create(wxWindow
* parent
, wxWindowID id
, const wxString
& label
,
81 const wxPoint
& pos
= wxDefaultPosition
,
82 const wxSize
& size
= wxDefaultSize
,
83 long style
= wxEL_DEFAULT_STYLE
,
84 const wxString
& name
= wxEditableListBoxNameStr
);
87 Replaces current contents with given strings.
89 void SetStrings(const wxArrayString
& strings
);
93 Returns in the given array the current contents of the control
94 (the array will be erased before control's contents are appended).
96 void GetStrings(wxArrayString
& strings
) const;