Added check to allow multiple selection by dragging only if property under mouse was adjacent to a property already in the selection.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1139,6 +1139,29 @@ int wxPropertyGridPageState::HitTestH( int x, int* pSplitterHit, int* pSplitterH
|
||||
return col;
|
||||
}
|
||||
|
||||
bool wxPropertyGridPageState::ArePropertiesAdjacent( wxPGProperty* prop1,
|
||||
wxPGProperty* prop2,
|
||||
int iterFlags ) const
|
||||
{
|
||||
const wxPGProperty* ap1 =
|
||||
wxPropertyGridConstIterator::OneStep(this,
|
||||
iterFlags,
|
||||
prop1,
|
||||
1);
|
||||
if ( ap1 && ap1 == prop2 )
|
||||
return true;
|
||||
|
||||
const wxPGProperty* ap2 =
|
||||
wxPropertyGridConstIterator::OneStep(this,
|
||||
iterFlags,
|
||||
prop1,
|
||||
-1);
|
||||
if ( ap2 && ap2 == prop2 )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// wxPropertyGridPageState property value setting and getting
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user