IEFolderTree Checkboxes resets the selected folder, I assume because the checkboxes are drawn for all folders. This is a workaround but is slow and causes flicker after the checkboxes are drawn the default folder is shown, then the folder is reset to what it was before the checkboxes are redrawn.
It would be good to change the internal code so that when changing the checkboxes property the initial selected folder is shown after the checkboxes are drawn.
procedure TForm1.chkCheckboxesClick(Sender: TObject);
var
iFolder: string;
begin
iFolder := IEFolderTree1.Folder;
if chkCheckboxes.checked then
IEFolderMView.Checkboxes := iecbAlways
else
IEFolderMView.Checkboxes := iecbNone;
IEFolderTree1.Checkboxes := chkCheckboxes.checked;
if DirectoryExists(iFolder) then
IEFolderTree1.Folder := iFolder;
end;
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development