]>
git.saurik.com Git - wxWidgets.git/blob - interface/editlbox.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxEditableListBox
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxEditableListBox
13 An editable listbox is composite control that lets the
14 user easily enter, delete and reorder a list of strings.
17 @style{wxEL_ALLOW_NEW}:
18 Allows the user to enter new strings.
19 @style{wxEL_ALLOW_EDIT}:
20 Allows the user to edit existing strings.
21 @style{wxEL_ALLOW_DELETE}:
22 Allows the user to delete existing strings.
23 @style{wxEL_NO_REORDER}:
24 Does not allow the user to reorder the strings.
25 @style{wxEL_DEFAULT_STYLE}:
26 wxEL_ALLOW_NEW|wxEL_ALLOW_EDIT|wxEL_ALLOW_DELETE
34 class wxEditableListBox
: public wxPanel
39 Constructor, creating and showing a list box.
42 Parent window. Must not be @NULL.
44 Window identifier. The value wxID_ANY indicates a default value.
46 The text shown just before the list control.
50 Window size. If wxDefaultSize is specified then the window is
54 Window style. See wxEditableListBox.
61 wxEditableListBox(wxWindow
* parent
, wxWindowID id
,
62 const wxString
& label
,
63 const wxPoint
& pos
= wxDefaultPosition
,
64 const wxSize
& size
= wxDefaultSize
,
65 long style
= wxEL_DEFAULT_STYLE
,
66 const wxString
& name
= "editableListBox");
70 Destructor, destroying the list box.
75 Creates the editable listbox for two-step construction. See wxEditableListBox()
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");
86 Replaces current contents with given strings.
88 void SetStrings(const wxArrayString
& strings
);