1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| {$IFDEF UNIX}{Side effect correction -α }
aRect := CellRect(aCol, 0);
if oldCol > acol then
begin
p := ClientToScreen(Point(aRect.Right, aRect.Top));
SetCursorPos(p.X - 24, p.Y + Y);
end
else
begin
p := ClientToScreen(Point(aRect.Left, aRect.Top));
SetCursorPos(p.X + 24, p.Y + Y);
end;
{Side effect correction -ω }
{$ENDIF}
{ Colors and Exchanges -α }
Columns[oldCol - FixedCols].Color := clDefault;
ExchangeColRow(True, min(oldCol, aCol), max(oldCol, aCol));
Columns[aCol - FixedCols].Color := Lighter(clHighLight, 80);
{ Colors and Exchanges -ω }
{$IFDEF WINDOWS} {Side effect correction -α }
aRect := CellRect(aCol, 0);
if oldCol > acol then
begin
p := ClientToScreen(Point(aRect.Right, aRect.Top));
SetCursorPos(p.X - 24, p.Y + Y);
end
else
begin
p := ClientToScreen(Point(aRect.Left, aRect.Top));
SetCursorPos(p.X + 24, p.Y + Y);
end;
{Side effect correction -ω }
{$ENDIF} |
Partager