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
 IEFolderMView and IEFolderTree colors
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jrpcguru

USA
254 Posts

Posted - Feb 24 2023 :  16:07:08  Show Profile  Reply
With my program and various demos, the FolderTree shows a nice Sky Blue hi-lite color when a folder is clicked on, and therefore has focus.

If I then click on a file in the FolderMView, the FolderTree hi-lite turns gray, showing that it no longer has focus.

When I click on files in FolderMView, they too receive a hi-lite of Sky Blue for having focus. But, if I then click in FolderTree, the hi-lite in FolderMView remains Sky Blue.

I have researched all kinds of things in the help file and available properties and don't find a way to specify colors for FolderMView when it loses focus. I have found it is very easy, with both panels showing the same hi-lite color, to confuse which panel has focus. This means that clipboard hotkeys may act on a folder that the user does not desire.

Is there anything I've missed that would allow me to turn the hi-lite to gray, like FolderTree, when FolderMView loses focus?

J.R.

Update:
Apparently I was fixated on the fact that FolderTree automatically changed its colors when it lost focus and FolderMView did not. I have found a reasonable workaround:


procedure TMainForm.IEFolderTree1Click(Sender: TObject);
begin
  if PreviewOrOpenFiles.Checked = true then
    begin
      IEFolderMView.ThumbnailsBackgroundSelected := clSilver; 
      IEFolderMView.Refresh;
    end
  else
    IEFolderMView.Deselect;
end;

procedure TMainForm.IEFolderMViewClick(Sender: TObject);
begin
      IEFolderMView.ThumbnailsBackgroundSelected := clSkyBlue;
      IEFolderMView.Refresh;

end;

procedure TMainForm.PreviewOrOpenFilesClick(Sender: TObject);
begin

  PreviewOrOpenFiles.Checked := not PreviewOrOpenFiles.Checked;
  if PreviewOrOpenFiles.Checked = false then
    begin
      IEFolderMView.ThumbnailsBackgroundSelected := clSkyBlue;
      IEFolderMView.Refresh;
    end;


xequte

38196 Posts

Posted - Feb 24 2023 :  19:48:21  Show Profile  Reply
Hi

You can email me for an update that supports HideSelectionOnDefocus

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

jrpcguru

USA
254 Posts

Posted - Feb 24 2023 :  21:25:35  Show Profile  Reply
Thank you. That was remarkably fast. I assume you had already spotted this issue. It does make the user interface easier for users to understand.

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