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
 Explorer demo
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jrpcguru

USA
180 Posts

Posted - Sep 15 2021 :  19:29:48  Show Profile  Reply
I recently stumbled on the demo: Demos\Multi\Explorer\ExplorerDemo.dpr and was pleased to see that I should be able to build a replacement for File Explorer that allows me to adjust the font size via Ctrl+Plus/Minus like with browsers and email programs. Very nice! I am well on my way, but I've found a few issues and confirmed them with the demo:

If I use: IEFolderMView.SetStyleEx( iemsColumns, iedtFileName, iedtFileType, iedtFileEditDateTime, 0, True, True, True, True );
Clicking the Type column does not seem to sort, but the demo's popup menu option does.
If I use iedtFileExt, Clicking the Type column does sort.


If I use:
IEGlobalSettings().ImageEditingToolbar.Buttons := [ivbImageClipboard, ivbImageEditRotate, ivbImageEditFlip, ivbImageEditUndo, ivbImageEditOther, ivbImageSeek, ivbImageSave,ivbMouseSelect, ivbImagePrint];

this gives a crop icon, but no cropping action on .jpg or .tif. If the select icon is used, then a mini-toolbar appears with cropping that works.

If I use:
IEFolderMView.KeyInteract := [ mkiMoveSelected, mkiLetterNavigation];

The file is selected, but the display does not scroll down to show the file. Alpha and digits appear to work, except zero. It does change the display in TIEFolderTree.

IEFolderMView.ReadOnly := false; The help file appears to suggest True turns on file name editing. It is actually false.

If I use:
IEFolderMView.FolderInteract := [ieboOpenFoldersOnDblClick, ieboLaunchImagesOnDblClick, ieboLaunchFilesOnDblClick, ieboEnableFolderShortcuts, ieboEnableFileShortcuts, ieboClickToSortColumns];

Keyboard shortcuts:
Arrows work. Ctrl/Shift arrows work. Alpha letters select files but don't move them to visible. Ctrl+A doesn't select any files.
Delete does delete file. F2 does rename and clicking does work. Right Click>Rename does not work. Backspace does work. F5 does work. Enter does work. Alt+Enter does work. Ctrl+C works to copy, Ctrl+X just copies sometimes and doesn't refresh the display, Ctrl+V does paste but doesn't refresh the display. Shift+F10 does work. Right click > Cut does not yield a Right Click > paste option in another folder.

I have figured out how to generate a popup hint like File Explorer if a file is selected. However I haven't found a way to do it with a file that the mouse is hovering over. Is there a way? I thought TIEGetHintEvent or trackmouseselection might help but the help file was either silent or I didn't understand it.

Can we have popup toolbar for PDFium viewing? I've figured how to link it into the Preview feature. I have a variety of toolbars turned on, but none appears to be available for PDFium.






J.R.

xequte

6419 Posts

Posted - Sep 16 2021 :  00:33:46  Show Profile  Reply
Hi JR

Thank you for your detailed feedback. I have worked through each point and replied below...


> Clicking the iedtFileType column does not seem to sort

Thanks, this is fixed in the latest beta.


> If I use ... this gives a crop icon, but no cropping action on .jpg or .tif.
> If the select icon is used, then a mini-toolbar appears with cropping that works.

Cropping won't be available until a selection is made. At this time there is not a button for the CropTool interactions. But I'll add it to the to-do list.


> If I use: mkiLetterNavigation the display does not scroll down to show the file.

Ensure you enable SelectedImageAlwaysVisible


> Alpha and digits appear to work, except zero.

Fixed in current beta.


> IEFolderMView.ReadOnly := false; The help file appears to suggest True turns on file name editing

Fixed in current beta.


> Ctrl+A doesn't select any files.

Fixed in current beta.


> Right Click>Rename does not work.

Hmm, that's a system menu issue. I'll need to look into that further.


> Ctrl+X just copies sometimes and doesn't refresh the display.

I cannot reproduce that. Is UpdateAutomatically enabled?


> Right click > Cut does not yield a Right Click > paste option in another folder.

Paste is only available in the system folder menu. ImageEn does not display a system folder menu at this time.


> I have figured out how to generate a popup hint like File Explorer if a file is selected. However I haven't found a way to do it with a file that the mouse is hovering over.

If you have enabled ShowThumbnailHint you should be able to customize the hint in OnGetHint as the mouse moves over the control.


> Can we have popup toolbar for PDFium viewing?

This has been added in v10.2.0.

You can email me for v10.2.0 or the latest beta.

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

jrpcguru

USA
180 Posts

Posted - Sep 22 2021 :  19:58:51  Show Profile  Reply
Thanks for the quick reply. I'm guessing that some issues didn't make it into 10.2.0.

I tried SelectedImageAlwaysVisible and it does not cause file names to scroll onto screen.

There is a small bug in your demo:
C:\ProgramData\ImageEn\Demos\Multi\Explorer bug:
pitFilename .Checked := IEFolderMView.SortOrder = iesbFilename;
pitFilename .Checked := IEFolderMView.SortOrder = iesbFilenameWithoutPath;
If column for file name is clicked, the second line works. The first does not.

The arrows at the top of columns to show the sort order are almost invisible and small. Any chance I can adjust that, or you make them bigger & darker?

Can double clicking a column border adjust the width to the widest visible, like File Explorer?

With .JPG the toolbar includes a rectangular select option. It formerly popped up a minitoolbar with clipboard and crop options. The crop option is now missing and the crop option on the main toolbar is still nonfunctional.

My interest in using this File Explorer substitute is that it lets me adjust font sizes for a customer with macular degeneration. He uses the Windows Magnifier which is just horrible.



J.R.
Go to Top of Page

xequte

6419 Posts

Posted - Sep 22 2021 :  22:59:57  Show Profile  Reply
Hi JR

You should download v10.2.0.

We've fixed the sorting issues you mention in the current demo.

Also, there is an issue where the header text and sort chevrons do not scale on monitors with scaled text. We've fixed that in the current beta.

We'll look at auto-width on double-click for a later version.

The following code:

IEGlobalSettings().ImageEditingToolbar.Buttons := [ivbImageClipboard, ivbImageEditRotate, ivbImageEditFlip, ivbImageEditUndo, ivbImageEditOther, ivbImageSeek, ivbImageSave,ivbMouseSelect, ivbImagePrint];
ImageEnView1.AutoToolbars := [ ievEditing, ievSelection ];


Gives this toolbar if there is no selection:




Or this one with a selection (default buttons):




Clipboard buttons are included. The crop button is non-functional if there is no selection to crop.



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

jrpcguru

USA
180 Posts

Posted - Sep 29 2021 :  10:44:26  Show Profile  Reply
I've been traveling so can't pay as much attention to this as I'd like. I have managed to find a few questions (I am using 10.2.0):

IEFolderMView.KeyInteract := [ mkiMoveSelected, mkiLetterNavigation];
IEFolderMView.SelectedImageAlwaysVisible := true;
I put this in the ExplorerDemo and tried all layout options. If a letter is off screen, it is selected but not moved onto the screen.

The lack of a crop option that I had noted is fixed via:
IEGlobalSettings().ImageSelectionToolbar.Buttons := [ ivbImageClipboard, ivbImageEditOther ];
apparently that is the default and I messed it up with just the ivbImageClipboard.

Help file error:
IEGlobalSettings().PdfViewingToolbar.Position := iepAbove; //tpAbove; The help file has tpAbove but that does not compile.

In OnImageSelect, I use the following code to switch to PDFium when needed:

if ((FindFileFormat(ImageFileName) = iomscWPPDF)  or (UpperCase(ExtractFileExt(ImageFileName)) = '.PDF')) then
    begin
      ImageEnView1.PdfViewer.Enabled := true;
      ImageEnView1.PdfViewer.ShowAllPages := true;
      ImageEnView1.PdfViewer.AllowFormEditing := True;
      IEGlobalSettings().PdfViewingToolbar.Buttons := [ ivbImageSeek, ivbImagePrint, ivbImageZoom , ivbImageSave,  ivbMouseZoomAndScroll] - [ivbImageEditOther];     
      ImageEnView1.AutoToolbars := [ ievPdfViewing ];  
    end

Even with - [ivbImageEditOther] I can't get rid of the page moving buttons. I would like to be able to severely limit editing to rotate, flip and zoom, since one customer needs to be able to view financial PDFs for evidentiary value, without changing the evidence. I've seen banks deliver a PDF with 1,000 check images, all upside down, so your button for rotating the whole file is very handy. But evidence should never be changed so I would remove ivbImageSave for that application. And moving pages shouldn't happen either.

I think 10.2.0 fixed an earlier problem that I had where using IEFolderMView.AutoRefresh := Auto_Update;
did not refresh the file list when I pasted in files. My work around prior to that was:
procedure TForm1.btnPasteClick(Sender: TObject);
begin
  IEFolderMView.PasteFilesFromClipboard();
  IEFolderMView.RefreshFileList();
end;

Now with 10.2.0 I was surprised to find that this code caused the pasted files to appear twice, until I pressed F5. Easy fix was to remove RefreshFileList, but I wonder if that behavior is really intended?



J.R.
Go to Top of Page

xequte

6419 Posts

Posted - Sep 29 2021 :  23:56:07  Show Profile  Reply
Hi JR

> I put this in the ExplorerDemo and tried all layout options. If a letter is off screen, it is selected but not moved onto the screen.

Please email me for the 10.2.1 beta and try it in that update.


> Help file error: tpAbove

Thank you, fixed.


> In OnImageSelect, I use code to switch to PDFium when needed. Even with - [ivbImageEditOther] I can't get rid of the page moving buttons.

Sorry, that is a bug. Please email me for a fix.


> Calling TImageEnFolderMView.RefreshFileList when AutoRefresh is enabled may add file twice

There could be a timing issue there due to the way folder monitoring is done by Windows (i.e. new file is announced after the explicit refresh). I've added some safety checking to prevent this.

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

jrpcguru

USA
180 Posts

Posted - Oct 16 2021 :  20:12:34  Show Profile  Reply
Thanks again. I've only be able to work on this intermittently, but here are a few more questions:

Will IEFolderMView wrap file name if it is only icon + file name? Detail view? File Explorer seems to wrap at least 2 lines, depending on icon size. It would be nice if this were possible.

----------------
PDFium has importing, deleting and moving pages, but no exporting. Can you add extracting selected pages into a new file? I realize this can be accomplished by deleting from the source file and resaving, but that lets the user risk error and save over the source file.
----------------

if WindowsSelectDirectory(iemsg(IEMsg_WhereDoYouWantToCopyTheseFiles), fLastCopyDirectory, IEFolderMView) then OR

IEOpenFolderDialog1.Folder := fLastCopyDirectory;
if IEOpenFolderDialog1.execute then

Both of these options select the desired fLastCopyDirectory, but do not refresh the dialog to show the selected folder. You have to scroll to find the selected folder.
----------------

If I am renaming a file, the system right click menu is available but not very useful. Is there any way to provide my own right click menu? There doesn't seem to be an ImageEn right click menu.

I found nothing in the help file for: IEFolderMView.ShowTextEditor which is the code for Rename button.
----------------

If I use imbImageRotate in FolderMViewSelectionPopupMenu, it does not refresh the view of file, if Preview is turned on. Is there a way to make Preview reload the file automatically to show that it has rotated? Or a way to just trigger the preview to perform the rotation? I'm not sure why I would want to click a rotate option without seeing it happen.
----------------

IEFolderMView.FolderInteract := [ieboOpenFoldersOnDblClick, ieboLaunchImagesOnDblClick, ieboLaunchFilesOnDblClick, ieboEnableFolderShortcuts, ieboEnableFileShortcuts, ieboClickToSortColumns];

Ctrl+X does not change the .Enabled status of the Paste button and Ctrl+V did not work. If I use:
IEGlobalSettings().KeyboardShortcuts[ iesCut ] := 0; and set Ctrl+X as the hotkey of my menu option, then Ctrl+V does work.

----------------

File Explorer can use Ctrl+X to cut a folder in the tree panel and paste it into another folder either in the tree panel or the file panel. Can IEFolderTree1 do that too?

I just noticed that IEFolderMView.MouseWheelParams.Value is available to control the mouse wheel, but there seems to be no matching feature for IEFolderTree. The mouse wheel is quite rambunctious in the folder tree.


J.R.
Go to Top of Page

xequte

6419 Posts

Posted - Oct 18 2021 :  18:31:03  Show Profile  Reply
Hi JR

> Will IEFolderMView wrap file name if it is only icon + file name? Detail view? File Explorer seems to wrap at least 2 lines, depending on icon size. It would be nice if this were possible.

At present it just truncates. We'll consider wrapping for a future version.


> PDFium : Can you add extracting selected pages into a new file?

I've added this to the to-do list. Probably for next release.


> WindowsSelectDirectory: does not refresh the dialog to show the selected folder. You have to scroll to find the selected folder.

That appears to be a Windows issue.


> Is there any way to provide my own right click menu?

Sure, just use TImageEnFolderMView.PopupMenu


> There doesn't seem to be an ImageEn right click menu.

Why not use:

https://www.imageen.com/help/TIEImageEnGlobalSettings.FolderMViewSelectionPopupMenu.html


> I found nothing in the help file for: IEFolderMView.ShowTextEditor which is the code for Rename button.

In the current beta, you can use a RenameFile overload to prompt to rename the current file.


> If I use imbImageRotate in FolderMViewSelectionPopupMenu, it does not refresh the view of file, if Preview is turned on.

In the current beta, the TImageEnView will be updated if it is attached to the TImageEnMView, i.e. IEFolderMView.AttachedImageEnView := ImageEnView1


> Ctrl+X does not change the .Enabled status of the Paste button and Ctrl+V did not work. If I use:

I cannot reproduce that. In the Explorer demo, Ctrl+X and Ctrl+V work as expected


> File Explorer can use Ctrl+X to cut a folder in the tree panel and paste it into another folder either in the tree panel or the file panel. Can IEFolderTree1 do that too?

No, but I will add it to the to-do list.


> TIEFolderTree: The mouse wheel is quite rambunctious in the folder tree.

Wheel scrolling cannot be customized in TIEFolderTree, but I have made it a lot smoother for the current beta.


You can email me to test the latest beta.

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