Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Share Me

  • Please share this topic with your friends. Click any of the icons below:
  • Twitter
  • facebook
  • reddit
  • email

Some fixes for ElTree/Inplaceeditors

Enhance TElTreeView.Paint to

procedure TElTreeView.Paint;
var
  i: Integer;
  Editor: TWinControl;
begin
  FPainting := True;
  RedrawTree(Canvas, FOwner.FHPos, FVisible);

  for i := 0 to Self.FOwner.EditorManager.EditorsList.Count - 1 do
  begin
   if Self.FOwner.IsEditing then
   begin
     if IsWindowVisible(TElTreeInplaceEditor(Self.FOwner.EditorManager.EditorsList[i]).Editor.Handle) then
     begin
       Editor := TElTreeInplaceEditor(Self.FOwner.EditorManager.EditorsList[i]).Editor;
       Editor.PaintTo(Canvas, Editor.Left, Editor.Top);
     end;
   end;
  end;

  FPainting := False;
end;

procedure TElTreeView.DoEditItem(Item: TElTreeItem; SectionNum: integer);

 ...

 if FOwner.RightAlignedView then
  ...
      begin
        R.Right := R.Right - (2 * FDivLineWidth);                <- Add  2 *
        R.Left := R.Left + i * FDivLineWidth;
      end;

//    inc(R.Bottom);                                                       <- Remove this line

Comments

Sign In or Register to comment.