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
 ImageEnFolderMView Actions
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

lago

40 Posts

Posted - Jun 22 2017 :  08:11:28  Show Profile  Reply
Hello, I add images to a timagenfoldermview using appendimage and showing the filename as bottom. I have some problems using some "actions" and sorting methods.

For example, if I add a menu and associate it with the action "TIEFolderMViewCopySelectedFilesToClipboard" and assign it my imagefoldemview is never displayed as active. It happens to me with this action and with those of order

Trying to use them without actions:

I prove the following:
Not work: this->ImageEnFolderMView1->CopySelectedFilesToClipboard();

And:
   // this-> ImageEnFolderMView1-> SetSortOrderEx (iesbFilenameWithoutPath, true);
  This-> ImageEnFolderMView1-> SortOrder = iesbFilenameWithoutPath;
// then select ascending, or descending

With iesbFilenameWithoutPath it seems to work fine, but not with the rest described here:
https://www.imageen.com/help/TIEImageEnMViewSortBy.html

What do I do wrong?

Thank you!

xequte

39053 Posts

Posted - Jun 22 2017 :  19:29:24  Show Profile  Reply
Hi

Have you set the IEFolderMView property of the TAction to your TImageEnFolderMView component?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

lago

40 Posts

Posted - Jun 23 2017 :  04:36:39  Show Profile  Reply
Hello Nigel, I establish it, when I throw the action the images are rearranged, but in the wrong order. Your demo example works fine, I'll keep investigating ...

I am disoriented by the fact that for example the Copy to Clipboard action is disabled all the time.
Go to Top of Page

xequte

39053 Posts

Posted - Jun 23 2017 :  22:14:27  Show Profile  Reply
If you can create a simple demo that reproduces the problem, please forward it to me.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

lago

40 Posts

Posted - Jun 24 2017 :  01:07:41  Show Profile  Reply
Hello Nigel, mail has been sent. Thanks you.
Go to Top of Page

xequte

39053 Posts

Posted - Jun 25 2017 :  20:18:23  Show Profile  Reply
Hi

Thanks, I have received it.

Firstly, AppendImage and AppendFile require the full path to a file, so the event should be:

// Fill the grid with the content of a TFileListBox
procedure TForm1.DirectoryListBox1Change(Sender: TObject);
var
  i: Integer;
begin
  ImageEnFolderMView1.Clear();
  for i := 0 to FileListBox1.Items.Count - 1 do
    ImageEnFolderMView1.AppendFile( IEAddBackSlash(FileListBox1.Directory) + FileListBox1.Items[i], true );
end;


Also, with TImageEnMView you should use AppendFile, rather than AppendImage.


Finally, please note that you do not require a TFileListBox at all, just call:

procedure TForm1.DirectoryListBox1Change(Sender: TObject);
begin
  ImageEnFolderMView1.Folder := DirectoryListBox1.Directory;
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

lago

40 Posts

Posted - Jun 28 2017 :  14:43:25  Show Profile  Reply
Hello Nigel, thanks for replying and sorry for the late reply. I have questions about using AppendImage and AppendFile. AppendFile works correctly with different sorts. My question is about:

This AppendImage property:
LoadOnDemand If True, the image will not be loaded from disk until it is displayed (i.e. when it is scrolled into view)

In AppendFile I see:
Note: Unlike the AppendImage methods, the added file will be loaded on demand and filled with the details and properties of TImageEnFolderMView

Instead AppendImage manages images faster, or so it seems to me.

Should it be as fast as AppendImage than AppendFile?

Thank you!
Go to Top of Page

xequte

39053 Posts

Posted - Jun 28 2017 :  21:37:59  Show Profile  Reply
Hi

AppendFile does a few extra things that are needed by TIEFolderMView, such as filling the date and size fields so that sorting is possible.

Generally this should not have a significant effect on fill speed unless the list is large.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

lago

40 Posts

Posted - Jul 05 2017 :  14:50:26  Show Profile  Reply
Hi Nigel, thanks for your help, I will use appendfile better. I have encountered a serious problem when using horizontal and vertical flip actions, as well as TImageEnMViewRotateRight and TImageEnMViewRotateLeft ...
When you activate AutoSaveChanges after repeatedly using the same action on the same image, the jpg image becomes corrupted.

The file size increases each time the action is executed and to the fifth or sixth time it is used: ImageEnMViewRotateRight1AutoSaveError returns:

"Unexpected error while performing lossless transformation"

Do you know what is happening?

Thanks for your help
Go to Top of Page

xequte

39053 Posts

Posted - Jul 06 2017 :  19:07:37  Show Profile  Reply
Hi

We have a fix available for this (related to lossless rotation). Please email me for an update.


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