#include </home/zeitlin/src/wx/github/interface/wx/editlbox.h>
An editable listbox is composite control that lets the user easily enter, delete and reorder a list of strings.
This class supports the following styles:
The control uses a wxListCtrl internally and emit its events.
Public Member Functions | |
wxEditableListBox () | |
Default ctor. | |
wxEditableListBox (wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxEL_DEFAULT_STYLE, const wxString &name=wxEditableListBoxNameStr) | |
Constructor, creating and showing a list box. | |
virtual | ~wxEditableListBox () |
Destructor, destroying the list box. | |
bool | Create (wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxEL_DEFAULT_STYLE, const wxString &name=wxEditableListBoxNameStr) |
Creates the editable listbox for two-step construction. | |
void | SetStrings (const wxArrayString &strings) |
Replaces current contents with given strings. | |
void | GetStrings (wxArrayString &strings) const |
Returns in the given array the current contents of the control (the array will be erased before control's contents are appended). |
wxEditableListBox::wxEditableListBox | ( | ) |
Default ctor.
wxEditableListBox::wxEditableListBox | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxString & | label, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxEL_DEFAULT_STYLE , |
||
const wxString & | name = wxEditableListBoxNameStr |
||
) |
Constructor, creating and showing a list box.
parent | Parent window. Must not be NULL. |
id | Window identifier. The value wxID_ANY indicates a default value. |
label | The text shown just before the list control. |
pos | Window position. If wxDefaultPosition is specified then a default position is chosen. |
size | Window size. If wxDefaultSize is specified then the window is sized appropriately. |
style | Window style. See wxEditableListBox. |
name | Window name. |
virtual wxEditableListBox::~wxEditableListBox | ( | ) | [virtual] |
Destructor, destroying the list box.
bool wxEditableListBox::Create | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxString & | label, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxEL_DEFAULT_STYLE , |
||
const wxString & | name = wxEditableListBoxNameStr |
||
) |
Creates the editable listbox for two-step construction.
See wxEditableListBox() for further details.
void wxEditableListBox::GetStrings | ( | wxArrayString & | strings | ) | const |
Returns in the given array the current contents of the control (the array will be erased before control's contents are appended).
void wxEditableListBox::SetStrings | ( | const wxArrayString & | strings | ) |
Replaces current contents with given strings.