Sign in Join
FPDoc Onlineexperiment

TShellListView.OnDeletion property

Member of TShellListViewpublishedIn unit ShellCtrls

Event handler signalled when a list item is deleted from the Items container.

Declaration

pascal
property OnDeletion:;

Description

OnDeletion is a TLVDeletedEvent property with the event handler signalled when a list item is deleted from the Items container. It provides better compatibility with the Delete method as implemented in Delphi.

In Delphi, the Delete method is called when the Items.Delete method is called. But calling the method directly will also delete the item and then call the OnDeletion handler.

In that case we simply call Items.Delete and this will then call Delete again and in the second run we call the OnDeletion handler. Not 100% Delphi compatible, but more compatible then it was before. (BB)

This description is the one of ComCtrls.TCustomListView.OnDeletion.

See also

  • Delete
  • DoDeletion

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.