What should I do to make a TListview readonly ?

What should I do to make a TListview readonly ?
I can't find such property. Under Android user can swipe an item the left and touch the delete button.

Thanks

Comments

  1. I've used the next solution with a TTreeView: Drop inside the TListView a Layout and align it to "Client". Programmatically you can set in this Layout HitTest to True if you want that the Mouse Keys don't go to the ListView.

    I put here a little piece of my code:

    procedure TConfigurationsController.AfterChangeMode(Value :TMode);
    begin
    FView.LayoutCurtain.HitTest := Value = TMode.fmEdit;
    end;

    ReplyDelete

Post a Comment