git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64480
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// if we're on the "near" (usually left but right in
// RTL case) part of the column, the actual position we
// should be placed in is actually the one before it
// if we're on the "near" (usually left but right in
// RTL case) part of the column, the actual position we
// should be placed in is actually the one before it
const int middle = GetColLeft(colValid) +
GetColWidth(colValid)/2;
if ( GetLayoutDirection() == wxLayout_LeftToRight )
const int middle = GetColLeft(colValid) +
GetColWidth(colValid)/2;
if ( GetLayoutDirection() == wxLayout_LeftToRight )
+ onNearPart = (x <= middle);
else // wxLayout_RightToLeft
else // wxLayout_RightToLeft
+ onNearPart = (x > middle);