I made a modal dialog with a tcxshelltreeview on it.
I want the function create directory.
I have a message box to insert a directory name and create it.
I want to select the new directory but the TrackShellChanges is to slow, so that it
is not in treeview then.
Solution:
A Methode to force the ShellChanges or
better a function the insert a new node autmatiiicaly named "New Directory (1) etc." like the nomal windows shell
which I can edit.
If edit is finished the dir is created physically.
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Ruediger,
I may be mistaken, but I suggest that you use the CreateDirectory API function to achieve what you want. For more information on using this function, please see the MSDN library. Here is some sample code:
procedure TForm1.cxButton1Click(Sender: TObject);
const
FolderName = 'Test Folder';
begin
if CreateDirectory(PChar(cxShellListView1.Root.Folder.PathName + '' + FolderName), nil) then
cxShellListView1.UpdateContent;
end;
Please try this solution and let us know if it helps.
Thanks,
Vito
Thank you very much for the answer,
the UpdateConent function I had not found before.
Thank you very much for the answer,
the UpdateConent function I had not found before.
Hi Ruediger,
You are welcome!
Thanks,
Vito