added wxListBox::HitTest() from Ryan (patch 1446207)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -107,6 +107,9 @@ public:
|
||||
// instead
|
||||
bool Selected(int n) const { return IsSelected(n); }
|
||||
|
||||
// returns the item number at a point or wxNOT_FOUND
|
||||
int HitTest(const wxPoint& point) const { return DoListHitTest(point); }
|
||||
|
||||
protected:
|
||||
// NB: due to wxGTK implementation details, DoInsert() is implemented
|
||||
// using DoInsertItems() and not the other way round
|
||||
@@ -121,6 +124,10 @@ protected:
|
||||
|
||||
virtual void DoSetSelection(int n, bool select) = 0;
|
||||
|
||||
// there is already wxWindow::DoHitTest() so call this one differently
|
||||
virtual int DoListHitTest(const wxPoint& WXUNUSED(point)) const
|
||||
{ return wxNOT_FOUND; }
|
||||
|
||||
|
||||
DECLARE_NO_COPY_CLASS(wxListBoxBase)
|
||||
};
|
||||
|
Reference in New Issue
Block a user