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
 Detect Drag-Drop from ImageEnMulti to ImageEnVect
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Nov 08 2016 :  08:35:43  Show Profile  Reply
Hello,

I want to allow user to drag an image from ImageEnMultiView to ImageEnVect which will be holding multiple vector shapes.

Now how can I detect as to on which vector shape the user has dropped an image? Based on this I want to load the image in that vector shape.

Any ideas as to how to do this?

Please guide if possible.

TIA


Yogi Yang

xequte

38616 Posts

Posted - Nov 09 2016 :  03:39:14  Show Profile  Reply
Hi Yogi

Sorry, I don't understand. By nature, every item in an TImageEnMView will be an image...

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

yogiyang

India
727 Posts

Posted - Nov 09 2016 :  07:37:12  Show Profile  Reply
Hello Nigel,

Yes you are right, every item in TImageEnMView will be image.

What I want to do is allow user to drag an Image from TImageEnMView and drop it on TImageEnVect.

In TImageEnVect user will have create multiple ImageObjects (miPutBitmap) interactively.

Now the user want facility to drag an Image thumbnail from TImageEnMView to TImageEnVect and drop it on an ImageObject.

I want to detect as to on which ImageObject did the user drop the image thumbnail from TImageEnMView and load the image in that particular ImageObject.

I hope now it is more understandable.

TIA


Yogi Yang
Go to Top of Page

w2m

USA
1990 Posts

Posted - Nov 09 2016 :  14:12:24  Show Profile  Reply
You may download a demo here which shows one way to accomplish dragging an image from TImageEnMView to a selected bitmap object in TImageEnVect.
attach/w2m/20161110102751_DragImageVectorial.zip
60.14 KB
1. Open- Open an image.
2. Create- Create a Bitmap object
3. Select- Select the object
4. Drag the image thumbnail to the selected object.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: