Search code examples
listviewdelphifiremonkey

How to change the text of the "Swipe Delete" button in TListView - Delphi FireMonkey?


Delphi 10 with Firemonkey: In the ListView, if the CanSwipeDelete property is True and if you run Swipe on a ListView item, a Delete button will be shown. Is it possible to change the text of this Delete button as shown in the image?

enter image description here


Solution

  • Setup it through the list view's DeleteButtonText property. The reference describes it as:

    Specifies the name of the Delete button designed to delete the TListView items. This button can be displayed if the CanSwipeDelete property is set True.