Deprecated and obsolete parts marked up for backward compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -103,12 +103,14 @@ public:
|
||||
// event.GetExtraLong())
|
||||
void Command(wxCommandEvent& event);
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
// compatibility - these functions are deprecated, use the new ones
|
||||
// instead
|
||||
bool Selected(int n) const { return IsSelected(n); }
|
||||
wxDEPRECATED( bool Selected(int n) const );
|
||||
|
||||
// returns the item number at a point or wxNOT_FOUND
|
||||
int HitTest(const wxPoint& point) const { return DoListHitTest(point); }
|
||||
wxDEPRECATED( int HitTest(const wxPoint& point) const );
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
protected:
|
||||
// NB: due to wxGTK implementation details, DoInsert() is implemented
|
||||
@@ -132,6 +134,11 @@ protected:
|
||||
DECLARE_NO_COPY_CLASS(wxListBoxBase)
|
||||
};
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_6
|
||||
inline bool wxListBoxBase::Selected(int n) const { return IsSelected(n); }
|
||||
inline int wxListBoxBase::HitTest(const wxPoint& point) const { return DoListHitTest(point); }
|
||||
#endif // WXWIN_COMPATIBILITY_2_6
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// include the platform-specific class declaration
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user