Download Now

    Reference TShellNotify

    Declared in Codebot.Windows.Shell.Tools.pas on line 119

    TShellNotify reports the changes Windows makes to files, folders, and drives, such as items being created, deleted, or renamed in a folder. It receives the same notifications Windows Explorer uses to refresh its windows
      TShellNotify = class(TComponent)
      protected
        procedure Loaded; override;
      public
        { Create a new shell notify }
        constructor Create(AOwner: TComponent); override;
        destructor Destroy; override;
      published
        { Changes are reported while Active is true }
        property Active: Boolean read FActive write SetActive default False;
        { The kinds of changes reported }
        property Changes: TShellChanges read FChanges write SetChanges default AllShellChanges;
        { The folder watched. When empty the desktop is watched, which with
          Recursive reports changes anywhere }
        property Path: string read FPath write SetPath;
        { Report changes in the subfolders of Path too }
        property Recursive: Boolean read FRecursive write SetRecursive default True;
        { Invoked when something changes }
        property OnChange: TShellChangeEvent read FOnChange write FOnChange;
      end;

    See also