TAddItemEvent procedure type
Specifies an event handler signalled when an item is added to a shell control.
Declaration
TAddItemEvent = procedure(Sender: TObject; const ABasePath: string;
const AFileInfo: TSearchRec;
var CanAdd: Boolean) of objectArguments
Sender | Object (control) generating the event notification. |
ABasePath | Base path for the item added to the shell control. |
AFileInfo | Search record with information for the item added to the shell control. |
CanAdd | True if the item can be added. |
Description
TAddItemEvent specifies an event handler signalled when an item is
added to a shell control. TAddItemEvent is the type used to implement the
OnAddItem event handler in
TCustomShellListView and
TCustomShellTreeView.
Applications must implement and assign an object procedure using the
signature for the event to respond to the notification. The Sender
argument must be cast to the correct class type to access properties and
method in the control. Set the value in the CanAdd variable
parameter to False to prevent the item from being added in the calling
procedure.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
