Version: 2.9.4
Public Member Functions
wxEditableListBox Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/editlbox.h>

Inheritance diagram for wxEditableListBox:

Detailed Description

An editable listbox is composite control that lets the user easily enter, delete and reorder a list of strings.

Styles

This class supports the following styles:

The control uses a wxListCtrl internally and emit its events.

Library:  wxAdvanced
Category:  Controls
参照:
wxListBox, wxListCtrl

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).

List of all members.


Constructor & Destructor Documentation

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.

Parameters:
parentParent window. Must not be NULL.
idWindow identifier. The value wxID_ANY indicates a default value.
labelThe text shown just before the list control.
posWindow position. If wxDefaultPosition is specified then a default position is chosen.
sizeWindow size. If wxDefaultSize is specified then the window is sized appropriately.
styleWindow style. See wxEditableListBox.
nameWindow name.
参照:
Create()
virtual wxEditableListBox::~wxEditableListBox ( ) [virtual]

Destructor, destroying the list box.


Member Function Documentation

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.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines