X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3bdb8629f8031d59c3920978ef2133ea1c6e3532..a9102b3671a45d116d781b0c8e90d2e9a84fbdcb:/include/wx/motif/choice.h?ds=sidebyside diff --git a/include/wx/motif/choice.h b/include/wx/motif/choice.h index 1636502e63..7cd969839a 100644 --- a/include/wx/motif/choice.h +++ b/include/wx/motif/choice.h @@ -22,7 +22,7 @@ #define wxWIDGET_ARRAY_DEFINED #include "wx/dynarray.h" - WX_DEFINE_ARRAY(WXWidget, wxWidgetArray); + WX_DEFINE_ARRAY_PTR(WXWidget, wxWidgetArray); #endif // Choice item @@ -46,6 +46,18 @@ public: Create(parent, id, pos, size, n, choices, style, validator, name); } + wxChoice(wxWindow *parent, wxWindowID id, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxChoiceNameStr) + { + Init(); + Create(parent, id, pos, size, choices, style, validator, name); + } + bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, @@ -54,6 +66,14 @@ public: const wxValidator& validator = wxDefaultValidator, const wxString& name = wxChoiceNameStr); + bool Create(wxWindow *parent, wxWindowID id, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxChoiceNameStr); + // implementation of wxControlWithItems virtual int GetCount() const; virtual int DoAppend(const wxString& item); @@ -80,7 +100,7 @@ public: void SetFocus(); // Implementation - virtual void ChangeFont(bool keepOriginalSize = TRUE); + virtual void ChangeFont(bool keepOriginalSize = true); virtual void ChangeBackgroundColour(); virtual void ChangeForegroundColour(); WXWidget GetTopWidget() const { return m_formWidget; }