orient = wxTB_VERTICAL;
// TODO: make more configurable
-
+
#if defined(__WXMAC__) && wxUSE_TOOLBAR && wxUSE_BMPBUTTON
if (style & wxBK_BUTTONBAR)
{
int pagePos = wxNOT_FOUND;
if ( flags )
- *flags = wxNB_HITTEST_NOWHERE;
+ *flags = wxBK_HITTEST_NOWHERE;
// convert from wxToolbook coordinates to wxToolBar ones
const wxToolBarBase * const tbar = GetToolBar();
const wxPoint tbarPt = tbar->ScreenToClient(ClientToScreen(pt));
// is the point over the toolbar?
- if ( wxRect(tbar->GetSize()).Inside(tbarPt) )
+ if ( wxRect(tbar->GetSize()).Contains(tbarPt) )
{
const wxToolBarToolBase * const
tool = tbar->FindToolForPosition(tbarPt.x, tbarPt.y);
{
pagePos = tbar->GetToolPos(tool->GetId());
if ( flags )
- *flags = wxNB_HITTEST_ONICON | wxNB_HITTEST_ONLABEL;
+ *flags = wxBK_HITTEST_ONICON | wxBK_HITTEST_ONLABEL;
}
}
else // not over the toolbar
{
- if ( flags && GetPageRect().Inside(pt) )
- *flags |= wxNB_HITTEST_ONPAGE;
+ if ( flags && GetPageRect().Contains(pt) )
+ *flags |= wxBK_HITTEST_ONPAGE;
}
return pagePos;