Solved

Refreshing a ShellTreeView

Posted on 2004-10-13
7
1,290 Views
Last Modified: 2008-02-01
Hi, I have a problem. I'm working on a backup program. I'm using a ShellComboBox, ShellTreeView, ShellListView. When I copy files from a source , using TSHOptFilestruct,...  the copied files (folders) reflect in the ShellListview, but not in the ShellTreeview. The ShellTreeView is not updated. How can I accomplish this ?

thanks
marioway
0
Comment
Question by:marioway
  • 4
  • 3
7 Comments
 
LVL 26

Accepted Solution

by:
EddieShipman earned 250 total points
ID: 12308440
Did you try calling the public method Refresh when the SHFileOp is done?
0
 

Author Comment

by:marioway
ID: 12308519
Hi, autorefresh is on . How can I do it at runtime ?

marioway
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 12309152
Well, I just tested in D6 with AutoRefresh set to True and
it worked just fine. Are you copying/moving files or directories?
If copying files, do you have the otNonFolders ObjectTypes set to True?
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 26

Expert Comment

by:EddieShipman
ID: 12309155
Do files show in the treeview?
0
 

Author Comment

by:marioway
ID: 12309697
Hello , I copy files and directories, but I'm going to set the otNonFolders to true, to see What happens; I'l let you know in a while. Thanks alot.

marioway
0
 

Author Comment

by:marioway
ID: 12309777
By the way, I don't know if my reply before the last one has arrived . What I have done is:

ShellTreeView.Refresh(ShellTreeView.TopItem) and this works fine. (for folders); now I'm going to try otNonfol....

I set the ShellTreeView.root to ShellComboBox1.Path;

thx
Marioway
0
 

Author Comment

by:marioway
ID: 12309861
Hi,

Now I can see the files also !!

Thanks alot

Marioway
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dev Express grid collapse 2 45
Find and Replace Stream with 0s 8 69
JAudiorecorder record freezing the app 29 76
firemonkey keyboard covers the controls 1 37
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question