folderlistview CreateFolder method
Return to Introduction  Previous page  Next page
Applies to
dcFolderListView component.  

Declaration
procedure CreateFolder(FolderName: String; Edit: Boolean);  

Description
The CreateFolder method creates new folder and adds new list item (which represents new folder) to the list view and specifies for this folder default name (FolderName parameter).  
 
If you want to allow user to edit the name of folder at once after its creation - set Edit parameter to True.  

Example
procedure TForm1.PopupMenuFolder1Click(Sender: TObject);  
begin  
  dcFolderListView1.CreateFolder('New Folder', True);  
end;  

See aslo
CreateShortcut method.