T O P I C R E V I E W |
cpstevenc |
Posted - Aug 19 2014 : 08:59:25 Got a TImageEnMView with thumbnails.
I populate these manually and each one has an ID #.
I want to allow the user to rearrange them easily by just drag and drop to change the order.
Then i'll update the database that I got the data from on which order to show them.
Could not find a demo program that showed this being doable.
I use drag/drop to allow new images to be added, but was hoping their would an easy way to allow the control itself to easily rearrange the images without coding every event?
Anyone got any tips on this?
|
3 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Aug 20 2014 : 21:14:25 Hi
The code is simple enough that I'm not sure there is great benefit in implementing as a property (also would cause clash/confusion with the file drag/drop code in TImageEnFolderMView).
I have made some small improvements to the drag drop demo. It will be released with the next ImageEn update, but email me if you want a copy now.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
cpstevenc |
Posted - Aug 19 2014 : 10:17:31 Thanks.. that is what I was figuring.. I found an older source I did that kinda worked, but was hoping they would have just kinda had this built in by now.
Ill check out that demo.
|
w2m |
Posted - Aug 19 2014 : 10:10:54 TImageEnMView does not support automatic thumbnail arrangement with drag & drop, but it is quite easy to add it by way of adding a few lines of code. Look at the XX:\Components\ImageEn\Demos\DragDrop\MultiView2 demo.
Bill Miller Adirondack Software & Graphics Email: w2m@hughes.net EBook: http://www.imageen.com/ebook/ Custom Commercial ImageEn Development |