LEADTOOLS Support
Imaging
Imaging SDK Questions
RasterThumbnailBrowser items reordering using drag and drop
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, May 3, 2011 6:07:07 AM(UTC)
Groups: Registered
Posts: 6
Hello,
Atalasoft already has feature which allows to reorder items in thumbnailBrowser using drag and drop. Could you implement it please? We very need this feature.
Best regards,
Rabb89
#2
Posted
:
Tuesday, May 3, 2011 6:18:38 AM(UTC)
Groups: Registered
Posts: 6
#3
Posted
:
Tuesday, May 3, 2011 6:35:12 AM(UTC)
Groups: Registered
Posts: 6
Just read from documentantion that ThumbnailBrowser is purposed for creating thumbnails on disk, so I would say that is feature request rather for RasterImageList than for RasterThumbnailBrowser
#4
Posted
:
Wednesday, May 4, 2011 8:28:05 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
I am attaching a small LEADTOOLS v17 VS2008 C# project that shows how you can reorder items in RasterImageList using drag and drop.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#5
Posted
:
Wednesday, May 4, 2011 10:19:01 AM(UTC)
Groups: Registered
Posts: 6
Thank you very much for this example. I have only 2 issues with it:
1) It doesn't support multiselected items moving
2) It would be very very helpful to see where moving items will be placed via helper line (illustrated in screenshot)
Could you add this features to example, please?
Btw. tell me please does RasterImageList support lazy loading? (ilustrated in lazy loading.jpg) - if there were thousands of images, it would waste a lot of memory if load all at start.
Thank you a lot,
Rabb89
#6
Posted
:
Wednesday, May 4, 2011 10:20:42 AM(UTC)
Groups: Registered
Posts: 6
#7
Posted
:
Thursday, May 5, 2011 5:15:01 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
About efficient loading of thumbnails, this is shown in the demo attached with the following forum post:
http://support.leadtools.com/SupportPortal/CS/forums/32636/ShowPost.aspx
About multi-selecting items, this is supported in our image list, and you can enable it using the RasterImageList.SelectionMode property.
About marking the location where you want to drop the items, you can do that by drawing the mark using the rasterImageList1.CreateGraphics() method, then use the .NET GDI+ drawing methods to make your mark.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#8
Posted
:
Thursday, May 5, 2011 10:08:22 AM(UTC)
Groups: Registered
Posts: 6
I already tried to modify your example with SelectionMode = Multi but unfortunately when you select e.g two items and then mouse down to start dragging selection disapears (only mouseDowned item stays selected)
Thanks
Rabb89
#9
Posted
:
Sunday, May 8, 2011 3:54:33 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
OK, I will try to do the changes you requested, so please send an email to
support@leadtools.com and mention this forum post to follow up.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#10
Posted
:
Friday, January 3, 2014 4:57:24 AM(UTC)
Groups: Registered
Posts: 18
hello ,
is this example updated for multiple files selection ?
#11
Posted
:
Monday, January 6, 2014 6:22:51 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
There are ways to handle drag and drop with multiple items selection. One of them is shown in the attached demo, but this demo does not cover all cases and is only intended to show the basic idea of dragging several items together.
If you want to use this code in your actual project, you should test all cases carefully such as when the user clicks on different parts of the control or drags in different ways, and you might have to modify the code based on your requirements.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
RasterThumbnailBrowser items reordering using drag and drop
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.