X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c63312c472c83be6d3b935f0ceeef484a7d611ce..dd9f8b6bb6935360a8271dc3e8749fb026b601a8:/include/wx/choice.h?ds=sidebyside diff --git a/include/wx/choice.h b/include/wx/choice.h index 16017f87ec..3127b083a5 100644 --- a/include/wx/choice.h +++ b/include/wx/choice.h @@ -26,7 +26,7 @@ // global data // ---------------------------------------------------------------------------- -extern WXDLLEXPORT_DATA(const wxChar) wxChoiceNameStr[]; +extern WXDLLEXPORT_DATA(const char) wxChoiceNameStr[]; // ---------------------------------------------------------------------------- // wxChoice allows to select one of a non-modifiable list of strings @@ -55,6 +55,9 @@ public: // emulate selecting the item event.GetInt() void Command(wxCommandEvent& event); + // override wxItemContainer::IsSorted + virtual bool IsSorted() const { return HasFlag(wxCB_SORT); } + private: DECLARE_NO_COPY_CLASS(wxChoiceBase) }; @@ -81,6 +84,8 @@ private: #include "wx/cocoa/choice.h" #elif defined(__WXPM__) #include "wx/os2/choice.h" +#elif defined(__WXPALMOS__) + #include "wx/palmos/choice.h" #endif #endif // wxUSE_CHOICE