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
 IEFolderMView and IEFolderTree colors

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
jrpcguru Posted - Feb 24 2023 : 16:07:08
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;


2   L A T E S T    R E P L I E S    (Newest First)
jrpcguru Posted - Feb 24 2023 : 21:25:35
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.
xequte Posted - Feb 24 2023 : 19:48:21
Hi

You can email me for an update that supports HideSelectionOnDefocus

Nigel
Xequte Software
www.imageen.com