ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEFolderTree1.SelectSpecialFolder
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jrpcguru

USA
266 Posts

Posted - Jan 08 2022 :  19:39:08  Show Profile  Reply
I stumbled on this option in the help file and thought it might be nice to have menu options for various special folders.

IEFolderMView.ShowHiddenFiles := true;
IEFolderMView.EnableSpecialFolders := True;

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.


J.R.

xequte

38610 Posts

Posted - Jan 09 2022 :  19:43:02  Show Profile  Reply
Hi JR

Some Windows changes have affected this, but you can email me for an update that is much improved.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jrpcguru

USA
266 Posts

Posted - Jan 16 2022 :  15:15:29  Show Profile  Reply
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)

J.R.
Go to Top of Page

xequte

38610 Posts

Posted - Jan 16 2022 :  22:02:03  Show Profile  Reply
Hi JR

Please add ievtHiddenFolders to ViewTypes:

https://www.imageen.com/help/TIEFolderTree.ViewTypes.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jrpcguru

USA
266 Posts

Posted - Jan 17 2022 :  11:17:18  Show Profile  Reply
Thank you for the clarification. I don't know how I missed ViewTypes when I was searching the help file. Must have been tired!

Now I get to test all the interesting options. No rest for the wicked!

J.R.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: