moved wxNotebook::HitTest() to the base book control class; implemented it for wxList/Treebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -119,14 +119,8 @@ public:
|
||||
virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const = 0;
|
||||
|
||||
// get/set size of area between book control area and page area
|
||||
inline unsigned int GetInternalBorder() const
|
||||
{
|
||||
return m_internalBorder;
|
||||
}
|
||||
void SetInternalBorder(unsigned int internalBorder)
|
||||
{
|
||||
m_internalBorder = internalBorder;
|
||||
}
|
||||
unsigned int GetInternalBorder() const { return m_internalBorder; }
|
||||
void SetInternalBorder(unsigned int border) { m_internalBorder = border; }
|
||||
|
||||
// Sets/gets the margin around the controller
|
||||
void SetControlMargin(int margin) { m_controlMargin = margin; }
|
||||
@@ -198,6 +192,13 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
// hit test: returns which page is hit and, optionally, where (icon, label)
|
||||
virtual int HitTest(const wxPoint& WXUNUSED(pt),
|
||||
long * WXUNUSED(flags) = NULL) const
|
||||
{
|
||||
return wxNOT_FOUND;
|
||||
}
|
||||
|
||||
protected:
|
||||
// Should we accept NULL page pointers in Add/InsertPage()?
|
||||
//
|
||||
|
Reference in New Issue
Block a user