Ignore:
Timestamp:
Apr 11, 2018, 11:32:10 AM (7 years ago)
Author:
chronos
Message:
  • Fixed: Common package various fixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/UListViewSort.pas

    r510 r511  
    142142var
    143143  I: Integer;
     144  R: TRect;
    144145begin
    145146  with FStringGrid1 do begin
    146     Options := Options - [goEditing, goAlwaysShowEditor];
    147     //Columns.Clear;
    148147    while Columns.Count > ListView.Columns.Count do Columns.Delete(Columns.Count - 1);
    149148    while Columns.Count < ListView.Columns.Count do Columns.Add;
    150149    for I := 0 to ListView.Columns.Count - 1 do begin
    151150      Columns[I].Width := ListView.Columns[I].Width;
     151      if Selection.Left = I then begin
     152        R := CellRect(I, 0);
     153        Editor.Left := R.Left + 2;
     154        Editor.Width := R.Width - 4;
     155      end;
    152156    end;
    153     Options := Options + [goEditing, goAlwaysShowEditor];
    154157  end;
    155158end;
     
    381384  ItemLeft := Item.Left;
    382385  ItemLeft := 23; // Windows 7 workaround
    383  
     386
    384387  Rect1.Left := ItemLeft - CheckWidth - BiasLeft + 1 + XBias;
    385388  //ShowMessage(IntToStr(Tp1.Y) + ', ' + IntToStr(BiasTop) + ', ' + IntToStr(XBias));
Note: See TracChangeset for help on using the changeset viewer.