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
 TImageEnFolderMView Custom Sort Order

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
keithml Posted - Oct 02 2013 : 07:17:11
Hi. I love the new TImageEnFolderMView control. I just wanted to make a quick feature request. If you could add a custom sort option for sorts not on your sort order types, that would be VERY helpful.

Thanks,
Keith
10   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 16 2017 : 15:23:37
Hi

That would be your own custom sorting order, so you would need to set the SortOrder to iesbCustom, and use the TImageEnFolderMView.OnCustomSortCompare event to set the position of "moved" files according to your rules.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
mmiranda Posted - Feb 16 2017 : 09:37:43
Hi

I'm using TImageEnFolderMView and ImageEn ver 6.3.2

My question is:
How to keep the new order when moving objects on a TImageEnFolderMView?

I Mean, if i move a picture on a TImageEnFolderMView to a diferent position, how to keep that picture in that new position even refreshing FileList or reopening the imagefolder?

(Working with Delphi 7)

Thanks for your time
xequte Posted - Oct 21 2013 : 02:03:07
Hi

For unknown formats you can use the OnWrongImage event to fill the thumbnail.

http://www.imageen.com/help/TIEWrongImageEvent.html

Alternatively you can use one of the custom drawing events.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
supersk Posted - Oct 21 2013 : 00:00:23
How to display own defined format image in the TImageEnFolderMView?
keithml Posted - Oct 19 2013 : 13:46:42
GREAT! Thanks. That makes it nice and tidy.

Keith
xequte Posted - Oct 17 2013 : 18:34:59
Hi

In v5.0.1 we have added a SortOrder of iesbCustom, to use in conjunction with TImageEnFolderMView.OnCustomSortCompare



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
keithml Posted - Oct 14 2013 : 06:34:11
Thanks, couldn't be any easier. I think it was the warning in the help file that stopped blood from flowing to my brain on that one.

Keith
xequte Posted - Oct 13 2013 : 23:07:25
Hi Keith

Thanks for reminding me what I wrote in the help file.

To use the use custom sort of TImageEnMView you need only call it after filling the content:

In Create:
IEFolderMView1.SortOrder := iesbNone;

Whenever setting folder:
IEFolderMView1.LockUpdate;
try
  IEFolderMView1.Folder := sNewFolder;
  IEFolderMView1.Sort(MyCustomSortCompare);
finally
  IEFolderMView1.UnlockUpdate;
end;


I'll look into a custom sort option for a coming update.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
keithml Posted - Oct 11 2013 : 11:48:04
Its not clear how this would work properly with FolderMView. The problem is that when I set the Folder property, the component sorts and displays the thumbnails, I would then have to sort which seems to confuse things greatly. And updates for files complicates things more. The Help entry for Sort even states:

"DO NOT USE for TImageEnFolderMView! Use properties SortOrder and SortAscending instead."

Obviously having a SortOrder of custom would be the cleanest method of handling this, but in the meantime, how would I get this to work properly?

Thanks,
Keith
xequte Posted - Oct 02 2013 : 21:04:00
Hi Keith

Sorry, it is not obvious, but you can still use TImageEnMView.Sort if you need custom sorting:

http://www.imageen.com/help/TImageEnMView.Sort.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com