// wxChoice
//-----------------------------------------------------------------------------
+class wxGtkCollatedArrayString;
+
class WXDLLIMPEXP_CORE wxChoice : public wxChoiceBase
{
public:
bool Create( wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- int n = 0, const wxString choices[] = (wxString *) NULL,
+ int n = 0, const wxString choices[] = NULL,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr );
virtual wxString GetString(unsigned int n) const;
virtual void SetString(unsigned int n, const wxString& string);
- virtual void DisableEvents();
- virtual void EnableEvents();
+ virtual void SetColumns(int n=1);
+ virtual int GetColumns() const;
+
+ virtual void GTKDisableEvents();
+ virtual void GTKEnableEvents();
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
protected:
// this array is only used for controls with wxCB_SORT style, so only
// allocate it if it's needed (hence using pointer)
- wxSortedArrayString *m_strings;
+ wxGtkCollatedArrayString *m_strings;
// contains the client data for the items
wxArrayPtrVoid m_clientData;