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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEFolderTree Checkboxes Resets Selected Folder

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
w2m Posted - Apr 23 2019 : 11:48:30
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 23 2019 : 20:06:04
Thanks Bill,

I will improve this for 8.5.1

Nigel
Xequte Software
www.imageen.com