replaced wxWindowGTK::m_isListBox with a virtual function

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-05-31 14:00:01 +00:00
parent 6cad4f1b21
commit 3ae4c570c4
8 changed files with 48 additions and 34 deletions

View File

@@ -1064,4 +1064,13 @@ wxSize wxListBox::DoGetBestSize() const
return wxSize(lbWidth, lbHeight);
}
#endif
void wxListBox::FixUpMouseEvent(GtkWidget *widget, wxCoord& x, wxCoord& y)
{
// the mouse event coords are relative to the listbox items, we need to
// translate them to the normal client coords
x += widget->allocation.x;
y += widget->allocation.y;
}
#endif // wxUSE_LISTBOX