]>
Commit | Line | Data |
---|---|---|
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 | |
23324ae1 FM |
13 | An editable listbox is composite control that lets the |
14 | user easily enter, delete and reorder a list of strings. | |
7c913512 | 15 | |
23324ae1 FM |
16 | @beginStyleTable |
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 | |
27 | @endStyleTable | |
7c913512 | 28 | |
23324ae1 FM |
29 | @library{wxadv} |
30 | @category{FIXME} | |
7c913512 | 31 | |
e54c96f1 | 32 | @see wxListBox |
23324ae1 FM |
33 | */ |
34 | class wxEditableListBox : public wxPanel | |
35 | { | |
36 | public: | |
37 | //@{ | |
38 | /** | |
39 | Constructor, creating and showing a list box. | |
40 | ||
7c913512 | 41 | @param parent |
4cc4bfaf | 42 | Parent window. Must not be @NULL. |
7c913512 | 43 | @param id |
4cc4bfaf | 44 | Window identifier. The value wxID_ANY indicates a default value. |
7c913512 | 45 | @param label |
4cc4bfaf | 46 | The text shown just before the list control. |
7c913512 | 47 | @param pos |
4cc4bfaf | 48 | Window position. |
7c913512 | 49 | @param size |
4cc4bfaf FM |
50 | Window size. If wxDefaultSize is specified then the window is |
51 | sized | |
52 | appropriately. | |
7c913512 | 53 | @param style |
4cc4bfaf | 54 | Window style. See wxEditableListBox. |
7c913512 | 55 | @param name |
4cc4bfaf | 56 | Window name. |
23324ae1 | 57 | |
4cc4bfaf | 58 | @see Create() |
23324ae1 FM |
59 | */ |
60 | wxEditableListBox(); | |
7c913512 FM |
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"); | |
23324ae1 FM |
67 | //@} |
68 | ||
69 | /** | |
70 | Destructor, destroying the list box. | |
71 | */ | |
72 | ~wxEditableListBox(); | |
73 | ||
74 | /** | |
75 | Creates the editable listbox for two-step construction. See wxEditableListBox() | |
76 | for further details. | |
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); | |
89 | }; | |
e54c96f1 | 90 |