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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user