Skip mouse button release events in wxGenericListCtrl.
This is similar to r76093 for wxGenericTreeCtrl and fixes a similar problem: clicking in a wxListCtrl inside wxNotebook confused GtkNotebook mouse tracking logic because it didn't get some events. Closes #16365. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -582,6 +582,10 @@ All:
|
|||||||
- Fix silent data loss in wx[F]File::Write(wxString) if conversion fails.
|
- Fix silent data loss in wx[F]File::Write(wxString) if conversion fails.
|
||||||
- Make wxString::FromCDouble() work when the global C++ locale is not the C one.
|
- Make wxString::FromCDouble() work when the global C++ locale is not the C one.
|
||||||
|
|
||||||
|
wxGTK:
|
||||||
|
|
||||||
|
- Fix mouse handling in wxNotebook containing wxListCtrl (Charlie Fenton).
|
||||||
|
|
||||||
wxMSW:
|
wxMSW:
|
||||||
|
|
||||||
- Fix Cygwin 1.7 build.
|
- Fix Cygwin 1.7 build.
|
||||||
|
@@ -2426,6 +2426,9 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
|
|||||||
{
|
{
|
||||||
// reset the selection and bail out
|
// reset the selection and bail out
|
||||||
HighlightAll(false);
|
HighlightAll(false);
|
||||||
|
|
||||||
|
if ( event.LeftUp() )
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -2501,6 +2504,8 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_lineSelectSingleOnUp = (size_t)-1;
|
m_lineSelectSingleOnUp = (size_t)-1;
|
||||||
|
|
||||||
|
event.Skip();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user