Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Refreshing a ShellTreeView

Posted on 2004-10-13
7
Medium Priority
?
1,479 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 750 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

972 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