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
 IEFolderTree Checkboxes Resets Selected Folder
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - Apr 23 2019 :  11:48:30  Show Profile  Reply
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

xequte

38196 Posts

Posted - Apr 23 2019 :  20:06:04  Show Profile  Reply
Thanks Bill,

I will improve this for 8.5.1

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: