ShellBrowser Delphi Components Documentation
|
Next enumerates the objects in the current folder.
function Next(pChangeNotifier: TJamShellChangeNotifier): TEnumResult; overload;
Parameters |
Description |
pChangeNotifier: TJamShellChangeNotifier |
If supplied, the content of slow folder (currently the nethood) is added asynchronously using Shell change notifications sent to the given TJamShellChangeNotifier instance. |
True if a next object could be found.
Use Next to enumerate the objects in the current Folder. It returns false, when no object is left. After calling Next, ObjectName contains the name of the new object and TShellBrowser.IconNumber contains the number of the corresponding icon in the system image list. So you can easily fill Listboxes, TreeViews and ListViews with data.
These lines show how to fill a listview, so that it looks like an Explorer window:
While ShellBrowser.Next do begin Item := ListView.Items.Add; Item.Caption := ShellBrowser.GetShellObjectName; Item.ImageIndex := ShellBrowser.IconNumber; end;