X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..544ab85e05ac2eb8bfa507bb8f81b87a69b2000c:/interface/wx/editlbox.h diff --git a/interface/wx/editlbox.h b/interface/wx/editlbox.h index ae0dcb2c22..7a5788ea6c 100644 --- a/interface/wx/editlbox.h +++ b/interface/wx/editlbox.h @@ -3,12 +3,17 @@ // Purpose: interface of wxEditableListBox // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#define wxEL_ALLOW_NEW 0x0100 +#define wxEL_ALLOW_EDIT 0x0200 +#define wxEL_ALLOW_DELETE 0x0400 +#define wxEL_NO_REORDER 0x0800 +#define wxEL_DEFAULT_STYLE (wxEL_ALLOW_NEW | wxEL_ALLOW_EDIT | wxEL_ALLOW_DELETE) + /** @class wxEditableListBox - @wxheader{editlbox.h} An editable listbox is composite control that lets the user easily enter, delete and reorder a list of strings. @@ -26,10 +31,12 @@ Default style: wxEL_ALLOW_NEW|wxEL_ALLOW_EDIT|wxEL_ALLOW_DELETE. @endStyleTable + The control uses a wxListCtrl internally and emit its events. + @library{wxadv} @category{ctrl} - @see wxListBox + @see wxListBox, wxListCtrl */ class wxEditableListBox : public wxPanel { @@ -50,9 +57,10 @@ public: The text shown just before the list control. @param pos Window position. + If ::wxDefaultPosition is specified then a default position is chosen. @param size - Window size. If wxDefaultSize is specified then the window is sized - appropriately. + Window size. + If ::wxDefaultSize is specified then the window is sized appropriately. @param style Window style. See wxEditableListBox. @param name @@ -65,23 +73,22 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxEL_DEFAULT_STYLE, - const wxString& name = "editableListBox"); + const wxString& name = wxEditableListBoxNameStr); /** Destructor, destroying the list box. */ - ~wxEditableListBox(); + virtual ~wxEditableListBox(); /** Creates the editable listbox for two-step construction. See wxEditableListBox() for further details. */ - bool Create(wxWindow* parent, wxWindowID id, - const wxString& label, + 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 = "editableListBox"); + const wxString& name = wxEditableListBoxNameStr); /** Replaces current contents with given strings. @@ -93,6 +100,6 @@ public: Returns in the given array the current contents of the control (the array will be erased before control's contents are appended). */ - void GetSelections(wxArrayString& strings) const; + void GetStrings(wxArrayString& strings) const; };