[PINPOINT-1829]  VPP Catalog folder selector behavior
Type Change Request
Priority Low
Severity Trivial
Component Visual PinPoint
Fixed In Version [7.07.0
Versions Affected [6.06.0
Severity Closed
Resolution Complete
Reported By Bob Denny
Resources Bob Denny
Start Date 4/9/2021

Description
Via email from Colin Haig. Short story, make it like the one that appears in ACP. This means eliminate the usage of the NEWUI flag. The same Browse.bas logic is used in both.

Also, it does not pre-select what is there, and worse hitting Cancel erases the path field. 

Comments
4/9/2021 2:13:19 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/pinpoint
SVN Revision 245
Affected files /trunk/HTML Help/doc/PinPointRELNOTES.htm (Modified)
/trunk/Visual PinPoint/Browse.bas (Modified)
/trunk/Visual PinPoint/frmMain5.frm (Modified)
Check-in comment Pre-select the current path in the Catalog Folder browse window. Use the simple/smaller folder browser. GEM:1829
4/9/2021 1:51:20 PM   Bob Denny
This turned into a real adventure. set the code in Browse.bas. The SHBrowseForFolder call, combined with the callback that sends BFFM_SETSELECTIONA to cause it to default to showing the previously selected folder, worked perfectly ... except... when trying to pre-select the J:\ATLAS parent folder. I'm assuming this is because of the 324,000 files in 5 subfolders.

So I discovered that  you can do a SendMessage with a PIDL instead of a string in the initialize callback. So I added code to call SHParseDisplayName() to translate the incoming folder string to a PIDL, then used that in the BFFM_INITIALIZED event callback to set the opening location of the browse folder. It works!!