From: Gilles Depeyrot Date: Sun, 22 Jul 2001 20:05:15 +0000 (+0000) Subject: fixed wxListBox inheritance X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d7d38ea41209c226dea4b44f34b5ecc5ced6efae?ds=sidebyside fixed wxListBox inheritance git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/motif/listbox.h b/include/wx/motif/listbox.h index 6f352ec728..70715fd948 100644 --- a/include/wx/motif/listbox.h +++ b/include/wx/motif/listbox.h @@ -26,7 +26,7 @@ class WXDLLEXPORT wxArrayInt; WXDLLEXPORT_DATA(extern const char*) wxEmptyString; // List box item -class WXDLLEXPORT wxListBox: public wxControlWithItems +class WXDLLEXPORT wxListBox: public wxListBoxBase { DECLARE_DYNAMIC_CLASS(wxListBox) @@ -87,7 +87,7 @@ public: // For single or multiple choice list item virtual int GetSelections(wxArrayInt& aSelections) const; - virtual bool Selected(int n) const ; + virtual bool IsSelected(int n) const ; virtual wxString GetString(int n) const ; // Set the specified item at the first visible item diff --git a/src/motif/listbox.cpp b/src/motif/listbox.cpp index 6587b742b2..8b25c36f2a 100644 --- a/src/motif/listbox.cpp +++ b/src/motif/listbox.cpp @@ -414,7 +414,7 @@ void wxListBox::SetSelection(int N, bool select) m_inSetValue = FALSE; } -bool wxListBox::Selected(int N) const +bool wxListBox::IsSelected(int N) const { // In Motif, no simple way to determine if the item is selected. wxArrayInt theSelections;