// global data
// ----------------------------------------------------------------------------
-extern WXDLLEXPORT_DATA(const wxChar) wxChoiceNameStr[];
+extern WXDLLIMPEXP_DATA_CORE(const char) wxChoiceNameStr[];
// ----------------------------------------------------------------------------
// wxChoice allows to select one of a non-modifiable list of strings
// ----------------------------------------------------------------------------
-class WXDLLEXPORT wxChoiceBase : public wxControlWithItems
+class WXDLLIMPEXP_CORE wxChoiceBase : public wxControlWithItems
{
public:
wxChoiceBase() { }
// 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)
};
#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