IEFolderTree1.SelectSpecialFolder( iepdRecycleBin ); nothing happens I could not get SelectSpecialFolder to actually select the desired folder with most values as follows:
iepdDesktop nothing happens iepdDesktopFolder - displayed desktop iepdDrives - displayed This PC iepdNetwork - nothing happens iepdDocuments - goes to This PC iepdPictures - goes to This PC iepdVideo - goes to This PC iepdMusic - goes to This PC iepdProgramFiles - goes to ..Users\{user name} iepdAppData - goes to ..Users\{user name} iepdLocalAppData goes to ..Users\{user name} iepdStartMenu - goes to ..Users\{user name} iepdStartUp- goes to ..Users\{user name} iepdFavorites - goes to This PC
At first I thought the problem might be caused by my computer having My Documents redirected to my D: drive. But I have tested the program on two other stock Win 10 computers with the same result.
I modified the demo program and tried a few of these options with the same result. Fortunately the IEFolderTree has no problem navigating to the desired folders via the mouse.
I just noticed an extra detail which might be relevant to this issue. With: IEFolderMView.ShowHiddenFiles := true;
The IEFolderMView can navigate to folders and files that are usually hidden, such as C:\Users\{username}\AppData\Roaming
But IEFolderTree does not follow and show the hidden folder. I find no IEFolderTree property that matches ShowHiddenFiles.
This may be why IEFolderTree refuses to show \ProgramFiles. I tried to obtain ProgramFiles from environment variables or via GetSpecialFolderPath(CSIDL_PROGRAM_FILES ) or via SelectSpecialFolder( iepdProgramFiles ). The correct folder is obtained but IEFolderTree just won't display them, unless I navigate to the folder. The same thing happens with the ProgramData, APPDATA and LOCALAPPDATA folder. IEFolderTree does display C:\Program Files (x86)