doubleclick selects cell for editing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a3c15d892d
commit
1ef49ab576
@ -5543,13 +5543,19 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event )
|
|||||||
|
|
||||||
if ( XToEdgeOfCol(x) < 0 && YToEdgeOfRow(y) < 0 )
|
if ( XToEdgeOfCol(x) < 0 && YToEdgeOfRow(y) < 0 )
|
||||||
{
|
{
|
||||||
SendEvent( wxEVT_GRID_CELL_LEFT_DCLICK,
|
if ( !SendEvent( wxEVT_GRID_CELL_LEFT_DCLICK,
|
||||||
coords.GetRow(),
|
coords.GetRow(),
|
||||||
coords.GetCol(),
|
coords.GetCol(),
|
||||||
event );
|
event ) )
|
||||||
|
{
|
||||||
|
// we want double click to select a cell and start editing
|
||||||
|
// (i.e. to behave in same way as sequence of two slow clicks):
|
||||||
|
m_waitForSlowClick = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ------------ Left button released
|
// ------------ Left button released
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user